From 26d0dbddd7034178a3dfd62118854094b5f21fd0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Apr 2026 10:16:41 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...IInterfacesClient.ApiInterfacesCreate.g.cs | 79 + ...InterfacesClient.ApiInterfacesDestroy.g.cs | 26 + ...esClient.ApiInterfacesDuplicateCreate.g.cs | 83 + ...o.IInterfacesClient.ApiInterfacesList.g.cs | 30 + ...acesClient.ApiInterfacesPartialUpdate.g.cs | 83 + ...nterfacesClient.ApiInterfacesRetrieve.g.cs | 26 + ...IInterfacesClient.ApiInterfacesUpdate.g.cs | 83 + .../LabelStudio.IInterfacesClient.g.cs | 48 + .../LabelStudio.ILabelStudioClient.g.cs | 5 + .../LabelStudio.IProjects2Client.Create.g.cs | 16 + ...abelStudio.IProjects2Client.Duplicate.g.cs | 2 +- .../LabelStudio.IProjects2Client.Update.g.cs | 16 + ...piInferenceRunsBulkIndicatorsRetrieve.g.cs | 20 + ...ient.ApiInferenceRunsReEvaluateCreate.g.cs | 58 + ...t.ApiInferenceRunsRegressionsRetrieve.g.cs | 20 + ....ApiProjectsAnnotationsBrowseRetrieve.g.cs | 20 + ...omptsClient.ApiPromptsDuplicateCreate.g.cs | 57 + ...ent.ApiPromptsVersionsDuplicateCreate.g.cs | 74 + ...iPromptsVersionsFewShotExamplesCreate.g.cs | 45 + ...PromptsVersionsFewShotExamplesDestroy.g.cs | 24 + ...ApiPromptsVersionsFewShotExamplesList.g.cs | 24 + ...sVersionsFewShotExamplesPartialUpdate.g.cs | 49 + ...sVersionsFewShotExamplesReorderCreate.g.cs | 45 + ...romptsVersionsPredictionCountRetrieve.g.cs | 28 + ...iPromptsVersionsPromptPreviewRetrieve.g.cs | 22 + ...lient.ApiPromptsVersionsTryTaskCreate.g.cs | 24 + ...romptsClient.ApiPromptsVersionsUpdate.g.cs | 4 + .../LabelStudio.IPromptsClient.Create2.g.cs | 4 + .../LabelStudio.IPromptsClient.Create3.g.cs | 11 +- .../LabelStudio.IPromptsClient.Update2.g.cs | 4 + ...belStudio.IStatsClient.TotalAgreement.g.cs | 2 +- ....InterfacesClient.ApiInterfacesCreate.g.cs | 470 ++++++ ...InterfacesClient.ApiInterfacesDestroy.g.cs | 367 +++++ ...esClient.ApiInterfacesDuplicateCreate.g.cs | 479 ++++++ ...io.InterfacesClient.ApiInterfacesList.g.cs | 405 +++++ ...acesClient.ApiInterfacesPartialUpdate.g.cs | 479 ++++++ ...nterfacesClient.ApiInterfacesRetrieve.g.cs | 388 +++++ ....InterfacesClient.ApiInterfacesUpdate.g.cs | 479 ++++++ .../LabelStudio.InterfacesClient.g.cs | 115 ++ ...onConverters.ProjectDuplicateModeEnum.g.cs | 53 + ...ters.ProjectDuplicateModeEnumNullable.g.cs | 60 + ...io.JsonConverters.ReEvaluateModeEnum.g.cs} | 14 +- ...onverters.ReEvaluateModeEnumNullable.g.cs} | 14 +- .../LabelStudio.JsonSerializerContext.g.cs | 28 +- ...abelStudio.JsonSerializerContextTypes.g.cs | 1414 +++++++++-------- .../LabelStudio.LabelStudioClient.g.cs | 9 + ...abelStudio.Models.AllRolesProjectList.g.cs | 65 + ...abelStudio.Models.FewShotExample.Json.g.cs | 92 ++ .../LabelStudio.Models.FewShotExample.g.cs | 111 ++ ...dio.Models.FewShotExampleRequest.Json.g.cs | 92 ++ ...elStudio.Models.FewShotExampleRequest.g.cs | 63 + .../LabelStudio.Models.LseInterface.Json.g.cs | 92 ++ .../LabelStudio.Models.LseInterface.g.cs | 226 +++ ...dio.Models.LseInterfaceArtifacts.Json.g.cs | 92 ++ ...elStudio.Models.LseInterfaceArtifacts.g.cs | 18 + ...io.Models.LseInterfaceDataSample.Json.g.cs | 92 ++ ...lStudio.Models.LseInterfaceDataSample.g.cs | 18 + ...o.Models.LseInterfaceInputSchema.Json.g.cs | 92 ++ ...Studio.Models.LseInterfaceInputSchema.g.cs | 18 + ...udio.Models.LseInterfaceMessages.Json.g.cs | 92 ++ ...belStudio.Models.LseInterfaceMessages.g.cs | 18 + ....Models.LseInterfaceOutputSchema.Json.g.cs | 92 ++ ...tudio.Models.LseInterfaceOutputSchema.g.cs | 18 + ...tudio.Models.LseInterfaceRequest.Json.g.cs | 92 ++ ...abelStudio.Models.LseInterfaceRequest.g.cs | 150 ++ ...els.LseInterfaceRequestArtifacts.Json.g.cs | 92 ++ ...o.Models.LseInterfaceRequestArtifacts.g.cs | 18 + ...ls.LseInterfaceRequestDataSample.Json.g.cs | 92 ++ ....Models.LseInterfaceRequestDataSample.g.cs | 18 + ...s.LseInterfaceRequestInputSchema.Json.g.cs | 92 ++ ...Models.LseInterfaceRequestInputSchema.g.cs | 18 + ...dels.LseInterfaceRequestMessages.Json.g.cs | 92 ++ ...io.Models.LseInterfaceRequestMessages.g.cs | 18 + ....LseInterfaceRequestOutputSchema.Json.g.cs | 92 ++ ...odels.LseInterfaceRequestOutputSchema.g.cs | 18 + ...dels.LseInterfaceRequestVersions.Json.g.cs | 92 ++ ...io.Models.LseInterfaceRequestVersions.g.cs | 18 + ...udio.Models.LseInterfaceVersions.Json.g.cs | 92 ++ ...belStudio.Models.LseInterfaceVersions.g.cs | 18 + .../LabelStudio.Models.LseProject.g.cs | 65 + .../LabelStudio.Models.LseProjectCreate.g.cs | 65 + ...Studio.Models.LseProjectCreateRequest.g.cs | 65 + ...LabelStudio.Models.LseProjectResponse.g.cs | 65 + .../LabelStudio.Models.LseProjectUpdate.g.cs | 65 + .../LabelStudio.Models.ModelRun.g.cs | 61 +- .../LabelStudio.Models.ModelRunRequest.g.cs | 28 +- ...Models.PaginatedLseInterfaceList.Json.g.cs | 92 ++ ...udio.Models.PaginatedLseInterfaceList.g.cs | 81 + ...els.PatchedFewShotExampleRequest.Json.g.cs | 92 ++ ...o.Models.PatchedFewShotExampleRequest.g.cs | 61 + ...odels.PatchedLseInterfaceRequest.Json.g.cs | 92 ++ ...dio.Models.PatchedLseInterfaceRequest.g.cs | 147 ++ ...chedLseInterfaceRequestArtifacts.Json.g.cs | 92 ++ ...s.PatchedLseInterfaceRequestArtifacts.g.cs | 18 + ...hedLseInterfaceRequestDataSample.Json.g.cs | 92 ++ ....PatchedLseInterfaceRequestDataSample.g.cs | 18 + ...edLseInterfaceRequestInputSchema.Json.g.cs | 92 ++ ...PatchedLseInterfaceRequestInputSchema.g.cs | 18 + ...tchedLseInterfaceRequestMessages.Json.g.cs | 92 ++ ...ls.PatchedLseInterfaceRequestMessages.g.cs | 18 + ...dLseInterfaceRequestOutputSchema.Json.g.cs | 92 ++ ...atchedLseInterfaceRequestOutputSchema.g.cs | 18 + ...tchedLseInterfaceRequestVersions.Json.g.cs | 92 ++ ...ls.PatchedLseInterfaceRequestVersions.g.cs | 18 + ...Models.PatchedLseProjectUpdateRequest.g.cs | 65 + ....PatchedThirdPartyModelVersionRequest.g.cs | 11 + ...udio.Models.ProjectDuplicateModeEnum.g.cs} | 16 +- ...Studio.Models.ProjectDuplicateRequest.g.cs | 6 +- .../LabelStudio.Models.ProjectSubsetEnum.g.cs | 9 +- .../LabelStudio.Models.ReEvaluate.Json.g.cs | 92 ++ .../LabelStudio.Models.ReEvaluate.g.cs | 92 ++ ...LabelStudio.Models.ReEvaluateModeEnum.g.cs | 66 + ...lStudio.Models.ReEvaluateRequest.Json.g.cs | 92 ++ .../LabelStudio.Models.ReEvaluateRequest.g.cs | 92 ++ ...lStudio.Models.ThirdPartyModelVersion.g.cs | 23 + ....Models.ThirdPartyModelVersionRequest.g.cs | 11 + .../LabelStudio.Projects2Client.Create.g.cs | 23 + ...LabelStudio.Projects2Client.Duplicate.g.cs | 2 +- .../LabelStudio.Projects2Client.Update.g.cs | 23 + ...piInferenceRunsBulkIndicatorsRetrieve.g.cs | 357 +++++ ...ient.ApiInferenceRunsReEvaluateCreate.g.cs | 443 ++++++ ...t.ApiInferenceRunsRegressionsRetrieve.g.cs | 357 +++++ ....ApiProjectsAnnotationsBrowseRetrieve.g.cs | 361 +++++ ...omptsClient.ApiPromptsDuplicateCreate.g.cs | 450 ++++++ ...ent.ApiPromptsVersionsDuplicateCreate.g.cs | 472 ++++++ ...iPromptsVersionsFewShotExamplesCreate.g.cs | 438 +++++ ...PromptsVersionsFewShotExamplesDestroy.g.cs | 373 +++++ ...ApiPromptsVersionsFewShotExamplesList.g.cs | 397 +++++ ...sVersionsFewShotExamplesPartialUpdate.g.cs | 447 ++++++ ...sVersionsFewShotExamplesReorderCreate.g.cs | 438 +++++ ...romptsVersionsPredictionCountRetrieve.g.cs | 373 +++++ ...iPromptsVersionsPromptPreviewRetrieve.g.cs | 367 +++++ ...lient.ApiPromptsVersionsTryTaskCreate.g.cs | 369 +++++ ...romptsClient.ApiPromptsVersionsUpdate.g.cs | 5 + .../LabelStudio.PromptsClient.Create2.g.cs | 5 + .../LabelStudio.PromptsClient.Create3.g.cs | 13 +- .../LabelStudio.PromptsClient.Update2.g.cs | 5 + ...abelStudio.StatsClient.TotalAgreement.g.cs | 2 +- src/libs/LabelStudio/openapi.yaml | 1183 +++++++++++++- 139 files changed, 16468 insertions(+), 758 deletions(-) create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDestroy.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesList.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesPartialUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDestroy.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesList.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesPartialUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnum.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnumNullable.g.cs rename src/libs/LabelStudio/Generated/{LabelStudio.JsonConverters.ModeEnum.g.cs => LabelStudio.JsonConverters.ReEvaluateModeEnum.g.cs} (68%) rename src/libs/LabelStudio/Generated/{LabelStudio.JsonConverters.ModeEnumNullable.g.cs => LabelStudio.JsonConverters.ReEvaluateModeEnumNullable.g.cs} (69%) create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.g.cs rename src/libs/LabelStudio/Generated/{LabelStudio.Models.ModeEnum.g.cs => LabelStudio.Models.ProjectDuplicateModeEnum.g.cs} (63%) create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateModeEnum.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.Json.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs create mode 100644 src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesCreate.g.cs new file mode 100644 index 0000000..49b5de3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesCreate.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Create a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a new saved interface. + ///
+ /// + /// 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 ApiInterfacesCreateAsync( + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Create a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a new saved interface. + ///
+ /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesCreateAsync( + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = 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.IInterfacesClient.ApiInterfacesDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDestroy.g.cs new file mode 100644 index 0000000..738e3df --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDestroy.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Delete a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a saved interface. + ///
+ /// + /// 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 ApiInterfacesDestroyAsync( + string id, + 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.IInterfacesClient.ApiInterfacesDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDuplicateCreate.g.cs new file mode 100644 index 0000000..9de703c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesDuplicateCreate.g.cs @@ -0,0 +1,83 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Duplicate a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a copy of an existing saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesDuplicateCreateAsync( + string id, + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Duplicate a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a copy of an existing saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesDuplicateCreateAsync( + string id, + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = 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.IInterfacesClient.ApiInterfacesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesList.g.cs new file mode 100644 index 0000000..a4c7eb6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesList.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ List saved interfaces
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// List saved interfaces for the current organization. + ///
+ /// + /// + /// + /// 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 ApiInterfacesListAsync( + string? ordering = default, + int? page = default, + int? pageSize = 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.IInterfacesClient.ApiInterfacesPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesPartialUpdate.g.cs new file mode 100644 index 0000000..cf7d077 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesPartialUpdate.g.cs @@ -0,0 +1,83 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Partially update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Partially update a saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesPartialUpdateAsync( + string id, + + global::LabelStudio.PatchedLseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Partially update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Partially update a saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesPartialUpdateAsync( + string id, + object? artifacts = default, + string? code = default, + string? compiled = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + string? title = default, + object? versions = default, + int? workspace = 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.IInterfacesClient.ApiInterfacesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesRetrieve.g.cs new file mode 100644 index 0000000..6cfb224 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesRetrieve.g.cs @@ -0,0 +1,26 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Get a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Retrieve a saved interface by ID. + ///
+ /// + /// 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 ApiInterfacesRetrieveAsync( + string id, + 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.IInterfacesClient.ApiInterfacesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesUpdate.g.cs new file mode 100644 index 0000000..75953d1 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.ApiInterfacesUpdate.g.cs @@ -0,0 +1,83 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IInterfacesClient + { + /// + /// ✨ Update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesUpdateAsync( + string id, + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesUpdateAsync( + string id, + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = 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.IInterfacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.g.cs new file mode 100644 index 0000000..740965b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IInterfacesClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IInterfacesClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::LabelStudio.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs index 5a49e5e..a459d14 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILabelStudioClient.g.cs @@ -160,6 +160,11 @@ public partial interface ILabelStudioClient : global::System.IDisposable /// public ImportClient Import { get; } + /// + /// + /// + public InterfacesClient Interfaces { get; } + /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs index b240336..9da5dbe 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs @@ -33,6 +33,9 @@ public partial interface IProjects2Client /// /// Project owner /// + /// + /// + /// /// /// Project Description /// @@ -45,6 +48,7 @@ public partial interface IProjects2Client /// /// Labeling instructions in HTML format /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -86,6 +90,8 @@ public partial interface IProjects2Client /// Show a skip button in interface and allow annotators to skip the task /// /// + /// + /// /// /// Task data credentials: login /// @@ -95,6 +101,9 @@ public partial interface IProjects2Client /// /// Project Title /// + /// + /// Default Value: false + /// /// /// In Workspace /// @@ -106,10 +115,14 @@ public partial interface IProjects2Client string? color = default, global::System.Collections.Generic.Dictionary? controlWeights = default, global::LabelStudio.UserSimpleRequest? createdBy = default, + string? customInterfaceCode = default, + string? customInterfaceCompiled = default, + object? customInterfaceParams = default, string? description = default, bool? enableEmptyAnnotation = default, bool? evaluatePredictionsAutomatically = default, string? expertInstruction = default, + object? inputSchema = default, bool? isDraft = default, bool? isPublished = default, string? labelConfig = default, @@ -127,9 +140,12 @@ public partial interface IProjects2Client bool? showOverlapFirst = default, bool? showSkipButton = default, global::LabelStudio.SkipQueueEnum? skipQueue = default, + int? sourceInterfaceId = default, + int? sourceInterfaceVersion = default, string? taskDataLogin = default, string? taskDataPassword = default, string? title = default, + bool? useCustomInterface = default, int? workspace = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Duplicate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Duplicate.g.cs index d08cdc7..3d968e3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Duplicate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Duplicate.g.cs @@ -55,7 +55,7 @@ public partial interface IProjects2Client /// global::System.Threading.Tasks.Task DuplicateAsync( int id, - global::LabelStudio.ModeEnum mode, + global::LabelStudio.ProjectDuplicateModeEnum mode, string title, int workspace, string? description = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs index 475a6d8..fcf9070 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs @@ -78,6 +78,9 @@ public partial interface IProjects2Client /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -96,6 +99,7 @@ public partial interface IProjects2Client /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -156,6 +160,8 @@ public partial interface IProjects2Client /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -169,6 +175,9 @@ public partial interface IProjects2Client /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Workspace /// @@ -192,12 +201,16 @@ public partial interface IProjects2Client string? commentClassificationConfig = default, global::System.Collections.Generic.Dictionary? controlWeights = default, global::LabelStudio.UserSimpleRequest? createdBy = default, + string? customInterfaceCode = default, + string? customInterfaceCompiled = default, + object? customInterfaceParams = default, string? customScript = default, int? customTaskLockTtl = default, string? description = default, bool? enableEmptyAnnotation = default, bool? evaluatePredictionsAutomatically = default, string? expertInstruction = default, + object? inputSchema = default, bool? isDraft = default, bool? isPublished = default, string? labelConfig = default, @@ -220,10 +233,13 @@ public partial interface IProjects2Client bool? showSkipButton = default, bool? showUnusedDataColumnsToAnnotators = default, global::LabelStudio.SkipQueueEnum? skipQueue = default, + int? sourceInterfaceId = default, + int? sourceInterfaceVersion = default, bool? strictTaskOverlap = default, string? taskDataLogin = default, string? taskDataPassword = default, string? title = default, + bool? useCustomInterface = default, int? workspace = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs new file mode 100644 index 0000000..ec65972 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs @@ -0,0 +1,20 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Bulk fetch indicators for inference runs
+ /// Bulk fetch default indicators for multiple inference runs at once.
+ /// Returns aggregated metrics for up to 20 completed runs in a single request,
+ /// used by the Comparison Matrix to show all versions side by side. + ///
+ /// 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 ApiInferenceRunsBulkIndicatorsRetrieveAsync( + 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.IPromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs new file mode 100644 index 0000000..a167007 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Re-evaluate specific tasks from a previous run
+ /// Create a new inference run targeting only specific tasks (re-evaluation).
+ /// Supports four modes:
+ /// - custom: provide explicit task_ids
+ /// - failed: re-run tasks with failed predictions from a source run
+ /// - incorrect: re-run tasks with score < 1.0 from a source run
+ /// - regressions: re-run tasks that regressed between two runs + ///
+ /// + /// 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 ApiInferenceRunsReEvaluateCreateAsync( + + global::LabelStudio.ReEvaluateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Re-evaluate specific tasks from a previous run
+ /// Create a new inference run targeting only specific tasks (re-evaluation).
+ /// Supports four modes:
+ /// - custom: provide explicit task_ids
+ /// - failed: re-run tasks with failed predictions from a source run
+ /// - incorrect: re-run tasks with score < 1.0 from a source run
+ /// - regressions: re-run tasks that regressed between two runs + ///
+ /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + /// + /// + /// + /// + /// + /// Default Value: [] + /// + /// 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 ApiInferenceRunsReEvaluateCreateAsync( + global::LabelStudio.ReEvaluateModeEnum mode, + int modelVersionId, + int? runBId = default, + int? sourceModelRunId = default, + global::System.Collections.Generic.IList? taskIds = 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.IPromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs new file mode 100644 index 0000000..73c9e99 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs @@ -0,0 +1,20 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Compare correctness transitions between inference runs
+ /// Compare correctness transitions between two inference runs.
+ /// Classifies each task as regression, improvement, stable_correct,
+ /// stable_incorrect, new, or removed based on prediction scores. + ///
+ /// 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 ApiInferenceRunsRegressionsRetrieveAsync( + 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.IPromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs new file mode 100644 index 0000000..9dfcbdc --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs @@ -0,0 +1,20 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Browse annotations for few-shot examples
+ /// Lightweight annotations list for few-shot example browser. + ///
+ /// + /// 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 ApiProjectsAnnotationsBrowseRetrieveAsync( + int projectPk, + 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.IPromptsClient.ApiPromptsDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsDuplicateCreate.g.cs new file mode 100644 index 0000000..fb2e9b8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsDuplicateCreate.g.cs @@ -0,0 +1,57 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Duplicate a prompt + /// + /// + /// + /// 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 ApiPromptsDuplicateCreateAsync( + string id, + + global::LabelStudio.ModelInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Duplicate a prompt + /// + /// + /// + /// + /// User who created Dataset + /// + /// + /// Model description + /// + /// + /// + /// + /// + /// Default Value: TextClassification + /// + /// + /// Model name + /// + /// 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 ApiPromptsDuplicateCreateAsync( + string id, + string title, + global::System.Collections.Generic.IList? associatedProjects = default, + global::LabelStudio.UserSimpleRequest? createdBy = default, + string? description = default, + object? inputFields = default, + int? organization = default, + object? outputClasses = default, + global::LabelStudio.SkillNameEnum? skillName = 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.IPromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs new file mode 100644 index 0000000..0278719 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs @@ -0,0 +1,74 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Duplicate a prompt version
+ /// Duplicate an existing version, optionally overriding the model/connection. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsDuplicateCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.ThirdPartyModelVersionRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Duplicate a prompt version
+ /// Duplicate an existing version, optionally overriding the model/connection. + ///
+ /// + /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// + /// + /// + /// + /// Parent model interface ID + /// + /// + /// Prompt to execute + /// + /// + /// The model provider to use e.g. OpenAI
+ /// * `OpenAI` - OpenAI
+ /// * `AzureOpenAI` - AzureOpenAI
+ /// * `AzureAIFoundry` - AzureAIFoundry
+ /// * `VertexAI` - VertexAI
+ /// * `Gemini` - Gemini
+ /// * `Anthropic` - Anthropic
+ /// * `Custom` - Custom + /// + /// + /// The model ID to use within the given provider, e.g. gpt-3.5 + /// + /// + /// Model name + /// + /// 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 ApiPromptsVersionsDuplicateCreateAsync( + int promptId, + int versionId, + string prompt, + string providerModelId, + string title, + int? maxFewShotExamples = default, + int? modelProviderConnection = default, + int? organization = default, + int? parentModel = default, + global::LabelStudio.ProviderEnum? provider = 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.IPromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs new file mode 100644 index 0000000..12429b5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs @@ -0,0 +1,45 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Create a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.FewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Create a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesCreateAsync( + int promptId, + int versionId, + int annotation, + int task, + int? order = 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.IPromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs new file mode 100644 index 0000000..382eae3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Delete a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesDestroyAsync( + int id, + int promptId, + int versionId, + 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.IPromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs new file mode 100644 index 0000000..618e933 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ List few-shot examples
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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> ApiPromptsVersionsFewShotExamplesListAsync( + int promptId, + int versionId, + string? ordering = 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.IPromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs new file mode 100644 index 0000000..4ecd7b4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Update a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesPartialUpdateAsync( + int id, + int promptId, + int versionId, + + global::LabelStudio.PatchedFewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Update a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesPartialUpdateAsync( + int id, + int promptId, + int versionId, + int? annotation = default, + int? order = default, + int? task = 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.IPromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs new file mode 100644 index 0000000..b1a4c5c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs @@ -0,0 +1,45 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Reorder few-shot examples
+ /// Accept ordered list of example IDs, update order fields. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesReorderCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.FewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Reorder few-shot examples
+ /// Accept ordered list of example IDs, update order fields. + ///
+ /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesReorderCreateAsync( + int promptId, + int versionId, + int annotation, + int task, + int? order = 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.IPromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs new file mode 100644 index 0000000..9aa9195 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs @@ -0,0 +1,28 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Get prediction count for a prompt version
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Return how many tasks in a subset already have predictions for a given version. + ///
+ /// + /// + /// 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 ApiPromptsVersionsPredictionCountRetrieveAsync( + int promptId, + int versionId, + 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.IPromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs new file mode 100644 index 0000000..23a44d6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs @@ -0,0 +1,22 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Preview assembled prompt
+ /// Return the fully assembled prompt with few-shot examples injected. + ///
+ /// + /// + /// 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 ApiPromptsVersionsPromptPreviewRetrieveAsync( + int promptId, + int versionId, + 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.IPromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs new file mode 100644 index 0000000..cca40ee --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs @@ -0,0 +1,24 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface IPromptsClient + { + /// + /// ✨ Try prompt on a single task
+ /// Run a single-task ephemeral prediction using the current (possibly unsaved) prompt.
+ /// No ModelRun is created and no Prediction is stored. The user iterates
+ /// until happy, then saves and does a full Run. + ///
+ /// + /// + /// 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 ApiPromptsVersionsTryTaskCreateAsync( + int promptId, + int versionId, + 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.IPromptsClient.ApiPromptsVersionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsUpdate.g.cs index 2147651..cab65f1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.ApiPromptsVersionsUpdate.g.cs @@ -39,6 +39,9 @@ public partial interface IPromptsClient /// /// /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -72,6 +75,7 @@ public partial interface IPromptsClient string prompt, string providerModelId, string title, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create2.g.cs index 5a38133..b91f292 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create2.g.cs @@ -36,6 +36,9 @@ public partial interface IPromptsClient /// Create a new version of a prompt. /// /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -68,6 +71,7 @@ public partial interface IPromptsClient string prompt, string providerModelId, string title, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create3.g.cs index 5354b13..0f45a8c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Create3.g.cs @@ -39,6 +39,9 @@ public partial interface IPromptsClient /// /// /// + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. + /// /// /// Job ID for inference job for a ModelRun e.g. Adala job ID /// @@ -53,7 +56,11 @@ public partial interface IPromptsClient /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom + /// + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. /// /// /// @@ -66,10 +73,12 @@ public partial interface IPromptsClient int versionId, bool onlyMissingPredictions, int project, + object? filtersJson = default, string? jobId = default, int? organization = default, global::System.DateTime? predictionsUpdatedAt = default, global::LabelStudio.ProjectSubsetEnum? projectSubset = default, + int? sampleSubsetSize = default, int? totalCorrectPredictions = default, int? totalPredictions = default, int? totalTasks = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Update2.g.cs index c11db64..5d83ca3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IPromptsClient.Update2.g.cs @@ -39,6 +39,9 @@ public partial interface IPromptsClient /// /// /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -69,6 +72,7 @@ public partial interface IPromptsClient global::System.Threading.Tasks.Task Update2Async( int promptId, int versionId, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.TotalAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.TotalAgreement.g.cs index 0851257..4b3317c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.TotalAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IStatsClient.TotalAgreement.g.cs @@ -13,7 +13,7 @@ public partial interface IStatsClient /// </p>
/// </Card>
/// Overall or per-label total agreement across the project.
- /// NOTE: due to an open issue in Fern, SDK clients will raise ApiError upon handling a 204 response. As a workaround, wrap call to this function in a try-except block. + /// NOTE: when this endpoint returns 204 No Content, SDK clients return None. /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesCreate.g.cs new file mode 100644 index 0000000..a2b0423 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesCreate.g.cs @@ -0,0 +1,470 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesCreateSecurityRequirement0 = + 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_ApiInterfacesCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesCreateSecurityRequirement0, + }; + partial void PrepareApiInterfacesCreateArguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.LseInterfaceRequest request); + partial void PrepareApiInterfacesCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.LseInterfaceRequest request); + partial void ProcessApiInterfacesCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Create a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a new saved interface. + ///
+ /// + /// 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 ApiInterfacesCreateAsync( + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesCreateSecurityRequirements, + operationName: "ApiInterfacesCreateAsync"); + + 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/interfaces/", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiInterfacesCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + 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: "ApiInterfacesCreate", + methodName: "ApiInterfacesCreateAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesCreate", + methodName: "ApiInterfacesCreateAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesCreate", + methodName: "ApiInterfacesCreateAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesCreate", + methodName: "ApiInterfacesCreateAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesCreate", + methodName: "ApiInterfacesCreateAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.LseInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.LseInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Create a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a new saved interface. + ///
+ /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesCreateAsync( + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.LseInterfaceRequest + { + Artifacts = artifacts, + Code = code, + Compiled = compiled, + DataSample = dataSample, + Description = description, + InputSchema = inputSchema, + Messages = messages, + OutputSchema = outputSchema, + Title = title, + Versions = versions, + Workspace = workspace, + }; + + return await ApiInterfacesCreateAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDestroy.g.cs new file mode 100644 index 0000000..619a663 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDestroy.g.cs @@ -0,0 +1,367 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesDestroySecurityRequirement0 = + 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_ApiInterfacesDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesDestroySecurityRequirement0, + }; + partial void PrepareApiInterfacesDestroyArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id); + partial void PrepareApiInterfacesDestroyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id); + partial void ProcessApiInterfacesDestroyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Delete a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Delete a saved interface. + ///
+ /// + /// 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 ApiInterfacesDestroyAsync( + string id, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesDestroyArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesDestroySecurityRequirements, + operationName: "ApiInterfacesDestroyAsync"); + + 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/interfaces/{id}/", + baseUri: HttpClient.BaseAddress); + 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.Delete, + 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); + PrepareApiInterfacesDestroyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + 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: "ApiInterfacesDestroy", + methodName: "ApiInterfacesDestroyAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDestroy", + methodName: "ApiInterfacesDestroyAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDestroy", + methodName: "ApiInterfacesDestroyAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesDestroyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDestroy", + methodName: "ApiInterfacesDestroyAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDestroy", + methodName: "ApiInterfacesDestroyAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.InterfacesClient.ApiInterfacesDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDuplicateCreate.g.cs new file mode 100644 index 0000000..b4ee1a4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesDuplicateCreate.g.cs @@ -0,0 +1,479 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesDuplicateCreateSecurityRequirement0 = + 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_ApiInterfacesDuplicateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesDuplicateCreateSecurityRequirement0, + }; + partial void PrepareApiInterfacesDuplicateCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::LabelStudio.LseInterfaceRequest request); + partial void PrepareApiInterfacesDuplicateCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::LabelStudio.LseInterfaceRequest request); + partial void ProcessApiInterfacesDuplicateCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesDuplicateCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Duplicate a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a copy of an existing saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesDuplicateCreateAsync( + string id, + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesDuplicateCreateArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesDuplicateCreateSecurityRequirements, + operationName: "ApiInterfacesDuplicateCreateAsync"); + + 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/interfaces/{id}/duplicate/", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiInterfacesDuplicateCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + 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: "ApiInterfacesDuplicateCreate", + methodName: "ApiInterfacesDuplicateCreateAsync", + pathTemplate: "$\"/api/interfaces/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDuplicateCreate", + methodName: "ApiInterfacesDuplicateCreateAsync", + pathTemplate: "$\"/api/interfaces/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDuplicateCreate", + methodName: "ApiInterfacesDuplicateCreateAsync", + pathTemplate: "$\"/api/interfaces/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesDuplicateCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDuplicateCreate", + methodName: "ApiInterfacesDuplicateCreateAsync", + pathTemplate: "$\"/api/interfaces/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesDuplicateCreate", + methodName: "ApiInterfacesDuplicateCreateAsync", + pathTemplate: "$\"/api/interfaces/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesDuplicateCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.LseInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.LseInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Duplicate a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Create a copy of an existing saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesDuplicateCreateAsync( + string id, + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.LseInterfaceRequest + { + Artifacts = artifacts, + Code = code, + Compiled = compiled, + DataSample = dataSample, + Description = description, + InputSchema = inputSchema, + Messages = messages, + OutputSchema = outputSchema, + Title = title, + Versions = versions, + Workspace = workspace, + }; + + return await ApiInterfacesDuplicateCreateAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesList.g.cs new file mode 100644 index 0000000..b210c80 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesList.g.cs @@ -0,0 +1,405 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesListSecurityRequirement0 = + 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_ApiInterfacesListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesListSecurityRequirement0, + }; + partial void PrepareApiInterfacesListArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int? page, + ref int? pageSize); + partial void PrepareApiInterfacesListRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int? page, + int? pageSize); + partial void ProcessApiInterfacesListResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesListResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ List saved interfaces
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// List saved interfaces for the current organization. + ///
+ /// + /// + /// + /// 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 ApiInterfacesListAsync( + string? ordering = default, + int? page = default, + int? pageSize = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesListArguments( + httpClient: HttpClient, + ordering: ref ordering, + page: ref page, + pageSize: ref pageSize); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesListSecurityRequirements, + operationName: "ApiInterfacesListAsync"); + + 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/interfaces/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + .AddOptionalParameter("page", page?.ToString()) + .AddOptionalParameter("page_size", pageSize?.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); + PrepareApiInterfacesListRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + page: page, + pageSize: pageSize); + + 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: "ApiInterfacesList", + methodName: "ApiInterfacesListAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesList", + methodName: "ApiInterfacesListAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesList", + methodName: "ApiInterfacesListAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesListResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesList", + methodName: "ApiInterfacesListAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesList", + methodName: "ApiInterfacesListAsync", + pathTemplate: "\"/api/interfaces/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesListResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.PaginatedLseInterfaceList.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.PaginatedLseInterfaceList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.InterfacesClient.ApiInterfacesPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesPartialUpdate.g.cs new file mode 100644 index 0000000..c36759e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesPartialUpdate.g.cs @@ -0,0 +1,479 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesPartialUpdateSecurityRequirement0 = + 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_ApiInterfacesPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesPartialUpdateSecurityRequirement0, + }; + partial void PrepareApiInterfacesPartialUpdateArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::LabelStudio.PatchedLseInterfaceRequest request); + partial void PrepareApiInterfacesPartialUpdateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::LabelStudio.PatchedLseInterfaceRequest request); + partial void ProcessApiInterfacesPartialUpdateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesPartialUpdateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Partially update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Partially update a saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesPartialUpdateAsync( + string id, + + global::LabelStudio.PatchedLseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesPartialUpdateArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesPartialUpdateSecurityRequirements, + operationName: "ApiInterfacesPartialUpdateAsync"); + + 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/interfaces/{id}/", + baseUri: HttpClient.BaseAddress); + 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: new global::System.Net.Http.HttpMethod("PATCH"), + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiInterfacesPartialUpdateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + 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: "ApiInterfacesPartialUpdate", + methodName: "ApiInterfacesPartialUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesPartialUpdate", + methodName: "ApiInterfacesPartialUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesPartialUpdate", + methodName: "ApiInterfacesPartialUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesPartialUpdateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesPartialUpdate", + methodName: "ApiInterfacesPartialUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesPartialUpdate", + methodName: "ApiInterfacesPartialUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesPartialUpdateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.LseInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.LseInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Partially update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Partially update a saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesPartialUpdateAsync( + string id, + object? artifacts = default, + string? code = default, + string? compiled = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + string? title = default, + object? versions = default, + int? workspace = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.PatchedLseInterfaceRequest + { + Artifacts = artifacts, + Code = code, + Compiled = compiled, + DataSample = dataSample, + Description = description, + InputSchema = inputSchema, + Messages = messages, + OutputSchema = outputSchema, + Title = title, + Versions = versions, + Workspace = workspace, + }; + + return await ApiInterfacesPartialUpdateAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesRetrieve.g.cs new file mode 100644 index 0000000..5388ea5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesRetrieve.g.cs @@ -0,0 +1,388 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesRetrieveSecurityRequirement0 = + 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_ApiInterfacesRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesRetrieveSecurityRequirement0, + }; + partial void PrepareApiInterfacesRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id); + partial void PrepareApiInterfacesRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id); + partial void ProcessApiInterfacesRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesRetrieveResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Get a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Retrieve a saved interface by ID. + ///
+ /// + /// 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 ApiInterfacesRetrieveAsync( + string id, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesRetrieveArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesRetrieveSecurityRequirements, + operationName: "ApiInterfacesRetrieveAsync"); + + 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/interfaces/{id}/", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiInterfacesRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + 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: "ApiInterfacesRetrieve", + methodName: "ApiInterfacesRetrieveAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesRetrieve", + methodName: "ApiInterfacesRetrieveAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesRetrieve", + methodName: "ApiInterfacesRetrieveAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesRetrieve", + methodName: "ApiInterfacesRetrieveAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesRetrieve", + methodName: "ApiInterfacesRetrieveAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesRetrieveResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.LseInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.LseInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.InterfacesClient.ApiInterfacesUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesUpdate.g.cs new file mode 100644 index 0000000..bcfba53 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.ApiInterfacesUpdate.g.cs @@ -0,0 +1,479 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class InterfacesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInterfacesUpdateSecurityRequirement0 = + 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_ApiInterfacesUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInterfacesUpdateSecurityRequirement0, + }; + partial void PrepareApiInterfacesUpdateArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::LabelStudio.LseInterfaceRequest request); + partial void PrepareApiInterfacesUpdateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::LabelStudio.LseInterfaceRequest request); + partial void ProcessApiInterfacesUpdateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInterfacesUpdateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a saved interface. + ///
+ /// + /// + /// 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 ApiInterfacesUpdateAsync( + string id, + + global::LabelStudio.LseInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiInterfacesUpdateArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInterfacesUpdateSecurityRequirements, + operationName: "ApiInterfacesUpdateAsync"); + + 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/interfaces/{id}/", + baseUri: HttpClient.BaseAddress); + 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.Put, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiInterfacesUpdateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + 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: "ApiInterfacesUpdate", + methodName: "ApiInterfacesUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesUpdate", + methodName: "ApiInterfacesUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesUpdate", + methodName: "ApiInterfacesUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInterfacesUpdateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesUpdate", + methodName: "ApiInterfacesUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInterfacesUpdate", + methodName: "ApiInterfacesUpdateAsync", + pathTemplate: "$\"/api/interfaces/{id}/\"", + httpMethod: "PUT", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInterfacesUpdateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.LseInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.LseInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Update a saved interface
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Update a saved interface. + ///
+ /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// + /// 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 ApiInterfacesUpdateAsync( + string id, + string code, + string compiled, + string title, + object? artifacts = default, + object? dataSample = default, + string? description = default, + object? inputSchema = default, + object? messages = default, + object? outputSchema = default, + object? versions = default, + int? workspace = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.LseInterfaceRequest + { + Artifacts = artifacts, + Code = code, + Compiled = compiled, + DataSample = dataSample, + Description = description, + InputSchema = inputSchema, + Messages = messages, + OutputSchema = outputSchema, + Title = title, + Versions = versions, + Workspace = workspace, + }; + + return await ApiInterfacesUpdateAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.g.cs new file mode 100644 index 0000000..d922e41 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.InterfacesClient.g.cs @@ -0,0 +1,115 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class InterfacesClient : global::LabelStudio.IInterfacesClient, global::System.IDisposable + { + /// + /// Label Studio + /// + public const string DefaultBaseUrl = "http://localhost:8000/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::LabelStudio.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::LabelStudio.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the InterfacesClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public InterfacesClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the InterfacesClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public InterfacesClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + global::LabelStudio.AutoSDKClientOptions? options = null, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::LabelStudio.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnum.g.cs new file mode 100644 index 0000000..ac8741b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ProjectDuplicateModeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ProjectDuplicateModeEnum 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.ProjectDuplicateModeEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ProjectDuplicateModeEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ProjectDuplicateModeEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ProjectDuplicateModeEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.ProjectDuplicateModeEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnumNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnumNullable.g.cs new file mode 100644 index 0000000..760bc1e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ProjectDuplicateModeEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class ProjectDuplicateModeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.ProjectDuplicateModeEnum? 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.ProjectDuplicateModeEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.ProjectDuplicateModeEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.ProjectDuplicateModeEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.ProjectDuplicateModeEnum? 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.ProjectDuplicateModeEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnum.g.cs similarity index 68% rename from src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnum.g.cs rename to src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnum.g.cs index 99cb67f..88d1b41 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnum.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnum.g.cs @@ -3,10 +3,10 @@ namespace LabelStudio.JsonConverters { /// - public sealed class ModeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ReEvaluateModeEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::LabelStudio.ModeEnum Read( + public override global::LabelStudio.ReEvaluateModeEnum Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ModeEnumJsonConverter : global::System.Text.Json.Serializati var stringValue = reader.GetString(); if (stringValue != null) { - return global::LabelStudio.ModeEnumExtensions.ToEnum(stringValue) ?? default; + return global::LabelStudio.ReEvaluateModeEnumExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ModeEnumJsonConverter : global::System.Text.Json.Serializati case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::LabelStudio.ModeEnum)numValue; + return (global::LabelStudio.ReEvaluateModeEnum)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::LabelStudio.ModeEnum); + return default(global::LabelStudio.ReEvaluateModeEnum); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ModeEnumJsonConverter : global::System.Text.Json.Serializati /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::LabelStudio.ModeEnum value, + global::LabelStudio.ReEvaluateModeEnum value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::LabelStudio.ModeEnumExtensions.ToValueString(value)); + writer.WriteStringValue(global::LabelStudio.ReEvaluateModeEnumExtensions.ToValueString(value)); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnumNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnumNullable.g.cs similarity index 69% rename from src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnumNullable.g.cs rename to src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnumNullable.g.cs index 1e4b409..dc3e60f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ModeEnumNullable.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.ReEvaluateModeEnumNullable.g.cs @@ -3,10 +3,10 @@ namespace LabelStudio.JsonConverters { /// - public sealed class ModeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ReEvaluateModeEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::LabelStudio.ModeEnum? Read( + public override global::LabelStudio.ReEvaluateModeEnum? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ModeEnumNullableJsonConverter : global::System.Text.Json.Ser var stringValue = reader.GetString(); if (stringValue != null) { - return global::LabelStudio.ModeEnumExtensions.ToEnum(stringValue); + return global::LabelStudio.ReEvaluateModeEnumExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ModeEnumNullableJsonConverter : global::System.Text.Json.Ser case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::LabelStudio.ModeEnum)numValue; + return (global::LabelStudio.ReEvaluateModeEnum)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::LabelStudio.ModeEnum?); + return default(global::LabelStudio.ReEvaluateModeEnum?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ModeEnumNullableJsonConverter : global::System.Text.Json.Ser /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::LabelStudio.ModeEnum? value, + global::LabelStudio.ReEvaluateModeEnum? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::LabelStudio.ModeEnumExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::LabelStudio.ReEvaluateModeEnumExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index 4f34e68..9ccee15 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -69,10 +69,6 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.LastActionEnumNullableJsonConverter), - typeof(global::LabelStudio.JsonConverters.ModeEnumJsonConverter), - - typeof(global::LabelStudio.JsonConverters.ModeEnumNullableJsonConverter), - typeof(global::LabelStudio.JsonConverters.ModelRunStatusEnumJsonConverter), typeof(global::LabelStudio.JsonConverters.ModelRunStatusEnumNullableJsonConverter), @@ -89,6 +85,10 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.OrganizationMemberTagImportStatusStatusEnumNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ProjectDuplicateModeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ProjectDuplicateModeEnumNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ProjectGroupRoleEnumJsonConverter), typeof(global::LabelStudio.JsonConverters.ProjectGroupRoleEnumNullableJsonConverter), @@ -105,6 +105,10 @@ namespace LabelStudio typeof(global::LabelStudio.JsonConverters.ProviderEnumNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ReEvaluateModeEnumJsonConverter), + + typeof(global::LabelStudio.JsonConverters.ReEvaluateModeEnumNullableJsonConverter), + typeof(global::LabelStudio.JsonConverters.ReasonEnumJsonConverter), typeof(global::LabelStudio.JsonConverters.ReasonEnumNullableJsonConverter), @@ -478,6 +482,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FSMTransitionExecuteRequestRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FSMTransitionExecuteResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.StateModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FewShotExample))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FewShotExampleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.FileUpload))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Filter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -555,6 +561,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OnboardingStateEnum), TypeInfoPropertyName = "OnboardingStateEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TrialRoleEnum), TypeInfoPropertyName = "TrialRoleEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseFieldsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseInterface))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseInterfaceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganization))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationBilling))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseOrganizationMemberList))] @@ -609,7 +617,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MaybeExpandedComment), TypeInfoPropertyName = "MaybeExpandedComment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MetricParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.MetricParamUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModeEnum), TypeInfoPropertyName = "ModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterface))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SkillNameEnum), TypeInfoPropertyName = "SkillNameEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ModelInterfaceRequest))] @@ -653,6 +660,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLabelList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseInterfaceList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseOrganizationMemberListList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedLseProjectCountsList))] @@ -685,6 +694,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDatasetViewRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDefaultRoleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedDimensionRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFewShotExampleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedFileUploadRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSDatasetStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedGCSSAExportStorageRequest))] @@ -694,6 +704,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedHotkeysRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLabelLinkRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLabelRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseInterfaceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -721,6 +732,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PauseRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Prediction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Project))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectDuplicateModeEnum), TypeInfoPropertyName = "ProjectDuplicateModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectDuplicateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectGroup))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectGroupRoleEnum), TypeInfoPropertyName = "ProjectGroupRoleEnum2")] @@ -741,6 +753,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectTemplate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectTemplateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReEvaluate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReEvaluateModeEnum), TypeInfoPropertyName = "ReEvaluateModeEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ReEvaluateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RedisExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RedisImportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RefinePromptRequestRequest))] @@ -1012,6 +1027,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -1102,6 +1118,7 @@ namespace LabelStudio [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))] @@ -1171,6 +1188,7 @@ namespace LabelStudio [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))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index 15f0f0a..626b38f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -500,2327 +500,2375 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.FileUpload? Type118 { get; set; } + public global::LabelStudio.FewShotExample? Type118 { get; set; } /// /// /// - public global::LabelStudio.Filter? Type119 { get; set; } + public global::LabelStudio.FewShotExampleRequest? Type119 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::LabelStudio.FileUpload? Type120 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type121 { get; set; } + public global::LabelStudio.Filter? Type121 { get; set; } /// /// /// - public global::LabelStudio.FilterRequest? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::LabelStudio.FinishedEnum? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type124 { get; set; } + public global::LabelStudio.FilterRequest? Type124 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorage? Type125 { get; set; } + public global::LabelStudio.FinishedEnum? Type125 { get; set; } /// /// /// - public global::LabelStudio.GCSDatasetStorageRequest? Type126 { get; set; } + public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type126 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorage? Type127 { get; set; } + public global::LabelStudio.GCSDatasetStorage? Type127 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorage? Type128 { get; set; } + public global::LabelStudio.GCSDatasetStorageRequest? Type128 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorage? Type129 { get; set; } + public global::LabelStudio.GCSExportStorage? Type129 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorageRequest? Type130 { get; set; } + public global::LabelStudio.GCSImportStorage? Type130 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorage? Type131 { get; set; } + public global::LabelStudio.GCSSAExportStorage? Type131 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorageRequest? Type132 { get; set; } + public global::LabelStudio.GCSSAExportStorageRequest? Type132 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorage? Type133 { get; set; } + public global::LabelStudio.GCSSAImportStorage? Type133 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorageRequest? Type134 { get; set; } + public global::LabelStudio.GCSSAImportStorageRequest? Type134 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorage? Type135 { get; set; } + public global::LabelStudio.GCSWIFExportStorage? Type135 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorageRequest? Type136 { get; set; } + public global::LabelStudio.GCSWIFExportStorageRequest? Type136 { get; set; } /// /// /// - public global::LabelStudio.Hotkeys? Type137 { get; set; } + public global::LabelStudio.GCSWIFImportStorage? Type137 { get; set; } /// /// /// - public global::LabelStudio.ImportApiRequest? Type138 { get; set; } + public global::LabelStudio.GCSWIFImportStorageRequest? Type138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type139 { get; set; } + public global::LabelStudio.Hotkeys? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type140 { get; set; } + public global::LabelStudio.ImportApiRequest? Type140 { get; set; } /// /// /// - public global::LabelStudio.PredictionRequest? Type141 { get; set; } + public global::System.Collections.Generic.IList? Type141 { get; set; } /// /// /// - public global::LabelStudio.InferenceRunCostEstimate? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::LabelStudio.KPIDetailResponse? Type143 { get; set; } + public global::LabelStudio.PredictionRequest? Type143 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectSegment? Type144 { get; set; } + public global::LabelStudio.InferenceRunCostEstimate? Type144 { get; set; } /// /// /// - public global::LabelStudio.KPIUserSegment? Type145 { get; set; } + public global::LabelStudio.KPIDetailResponse? Type145 { get; set; } /// /// /// - public global::LabelStudio.KPIMatrixSegment? Type146 { get; set; } + public global::LabelStudio.KPIProjectSegment? Type146 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectMatrixSegment? Type147 { get; set; } + public global::LabelStudio.KPIUserSegment? Type147 { get; set; } /// /// /// - public global::LabelStudio.SegmentationEnum? Type148 { get; set; } + public global::LabelStudio.KPIMatrixSegment? Type148 { get; set; } /// /// /// - public global::LabelStudio.KPITimeSegment? Type149 { get; set; } + public global::LabelStudio.KPIProjectMatrixSegment? Type149 { get; set; } /// /// /// - public global::LabelStudio.KPIValue? Type150 { get; set; } + public global::LabelStudio.SegmentationEnum? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type151 { get; set; } + public global::LabelStudio.KPITimeSegment? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::LabelStudio.KPIValue? Type152 { get; set; } /// /// /// - public global::LabelStudio.KPIUserInfo? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::LabelStudio.KPIUserInfo? Type155 { get; set; } /// /// /// - public global::LabelStudio.KPIMetadata? Type156 { get; set; } + public global::System.Collections.Generic.IList>? Type156 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectInfo? Type157 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type158 { get; set; } + public global::LabelStudio.KPIMetadata? Type158 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenBlacklistRequest? Type159 { get; set; } + public global::LabelStudio.KPIProjectInfo? Type159 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenRotateRequest? Type160 { get; set; } + public global::System.Collections.Generic.IList? Type160 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenCreate? Type161 { get; set; } + public global::LabelStudio.LSAPITokenBlacklistRequest? Type161 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenList? Type162 { get; set; } + public global::LabelStudio.LSAPITokenRotateRequest? Type162 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettings? Type163 { get; set; } + public global::LabelStudio.LSEAPITokenCreate? Type163 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettingsRequest? Type164 { get; set; } + public global::LabelStudio.LSEAPITokenList? Type164 { get; set; } /// /// /// - public global::LabelStudio.LSEKeyIndicatorValue? Type165 { get; set; } + public global::LabelStudio.LSEJWTSettings? Type165 { get; set; } /// /// /// - public global::LabelStudio.Label? Type166 { get; set; } + public global::LabelStudio.LSEJWTSettingsRequest? Type166 { get; set; } /// /// /// - public global::LabelStudio.LabelCreate? Type167 { get; set; } + public global::LabelStudio.LSEKeyIndicatorValue? Type167 { get; set; } /// /// /// - public global::LabelStudio.LabelCreateRequest? Type168 { get; set; } + public global::LabelStudio.Label? Type168 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsResponse? Type169 { get; set; } + public global::LabelStudio.LabelCreate? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::LabelStudio.LabelCreateRequest? Type170 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsRow? Type171 { get; set; } + public global::LabelStudio.LabelDistributionCountsResponse? Type171 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsTotals? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type173 { get; set; } + public global::LabelStudio.LabelDistributionCountsRow? Type173 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureDimension? Type174 { get; set; } + public global::LabelStudio.LabelDistributionCountsTotals? Type174 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureResponse? Type175 { get; set; } + public global::System.Collections.Generic.Dictionary? Type175 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type176 { get; set; } + public global::LabelStudio.LabelDistributionStructureDimension? Type176 { get; set; } /// /// /// - public global::LabelStudio.LabelLink? Type177 { get; set; } + public global::LabelStudio.LabelDistributionStructureResponse? Type177 { get; set; } /// /// /// - public global::LabelStudio.LabelLinkRequest? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorage? Type179 { get; set; } + public global::LabelStudio.LabelLink? Type179 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorage? Type180 { get; set; } + public global::LabelStudio.LabelLinkRequest? Type180 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptions? Type181 { get; set; } + public global::LabelStudio.LocalFilesExportStorage? Type181 { get; set; } /// /// /// - public global::LabelStudio.ReviewedEnum? Type182 { get; set; } + public global::LabelStudio.LocalFilesImportStorage? Type182 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type183 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptions? Type183 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreate? Type184 { get; set; } + public global::LabelStudio.ReviewedEnum? Type184 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptions? Type185 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type185 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptions? Type186 { get; set; } + public global::LabelStudio.LseExportCreate? Type186 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreateRequest? Type187 { get; set; } + public global::LabelStudio.SerializationOptions? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::LabelStudio.LseTaskFilterOptions? Type188 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionsRequest? Type189 { get; set; } + public global::LabelStudio.LseExportCreateRequest? Type189 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptionsRequest? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::LabelStudio.LseFields? Type191 { get; set; } + public global::LabelStudio.SerializationOptionsRequest? Type191 { get; set; } /// /// /// - public global::LabelStudio.OnboardingStateEnum? Type192 { get; set; } + public global::LabelStudio.LseTaskFilterOptionsRequest? Type192 { get; set; } /// /// /// - public global::LabelStudio.TrialRoleEnum? Type193 { get; set; } + public global::LabelStudio.LseFields? Type193 { get; set; } /// /// /// - public global::LabelStudio.LseFieldsRequest? Type194 { get; set; } + public global::LabelStudio.OnboardingStateEnum? Type194 { get; set; } /// /// /// - public global::LabelStudio.LseOrganization? Type195 { get; set; } + public global::LabelStudio.TrialRoleEnum? Type195 { get; set; } /// /// /// - public global::LabelStudio.OrganizationBilling? Type196 { get; set; } + public global::LabelStudio.LseFieldsRequest? Type196 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberList? Type197 { get; set; } + public global::LabelStudio.LseInterface? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type198 { get; set; } + public global::LabelStudio.LseInterfaceRequest? Type198 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type199 { get; set; } + public global::LabelStudio.LseOrganization? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::LabelStudio.OrganizationBilling? Type200 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type201 { get; set; } + public global::LabelStudio.LseOrganizationMemberList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::LabelStudio.SimpleOrganizationMemberTag? Type203 { get; set; } + public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type203 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberList? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::LabelStudio.LseProject? Type205 { get; set; } + public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type205 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCounts? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreate? Type207 { get; set; } + public global::LabelStudio.SimpleOrganizationMemberTag? Type207 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequest? Type208 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberList? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type209 { get; set; } + public global::LabelStudio.LseProject? Type209 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParams? Type210 { get; set; } + public global::LabelStudio.LseProjectCounts? Type210 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParamsRequest? Type211 { get; set; } + public global::LabelStudio.LseProjectCreate? Type211 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponse? Type212 { get; set; } + public global::LabelStudio.LseProjectCreateRequest? Type212 { get; set; } /// /// /// - public global::LabelStudio.LseProjectUpdate? Type213 { get; set; } + public global::System.Collections.Generic.Dictionary? Type213 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorage? Type214 { get; set; } + public global::LabelStudio.LseProjectParams? Type214 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorageRequest? Type215 { get; set; } + public global::LabelStudio.LseProjectParamsRequest? Type215 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorage? Type216 { get; set; } + public global::LabelStudio.LseProjectResponse? Type216 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorageRequest? Type217 { get; set; } + public global::LabelStudio.LseProjectUpdate? Type217 { get; set; } /// /// /// - public global::LabelStudio.LseTask? Type218 { get; set; } + public global::LabelStudio.LseS3ExportStorage? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::LabelStudio.LseS3ExportStorageRequest? Type219 { get; set; } /// /// /// - public global::LabelStudio.LseTaskDraft? Type220 { get; set; } + public global::LabelStudio.LseS3ImportStorage? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::LabelStudio.LseS3ImportStorageRequest? Type221 { get; set; } /// /// /// - public global::LabelStudio.LseTaskPrediction? Type222 { get; set; } + public global::LabelStudio.LseTask? Type222 { get; set; } /// /// /// - public global::LabelStudio.SkippedEnum? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::LabelStudio.LseTaskRequest? Type224 { get; set; } + public global::LabelStudio.LseTaskDraft? Type224 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotators? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::LabelStudio.LseTaskPrediction? Type226 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type227 { get; set; } + public global::LabelStudio.SkippedEnum? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::LabelStudio.LseTaskRequest? Type228 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type229 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotators? Type229 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewers? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type231 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type233 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type234 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewers? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembership? Type236 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type236 { get; set; } /// /// /// - public global::LabelStudio.LseUserAPI? Type237 { get; set; } + public global::System.Collections.Generic.IList? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type238 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::LabelStudio.OrganizationMembership? Type240 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type241 { get; set; } + public global::LabelStudio.LseUserAPI? Type241 { get; set; } /// /// /// - public global::LabelStudio.MLBackend? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::LabelStudio.StateEnum? Type243 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type243 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequest? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type244 { get; set; } /// /// /// - public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type245 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type245 { get; set; } /// /// /// - public global::LabelStudio.MaybeExpandedComment? Type246 { get; set; } + public global::LabelStudio.MLBackend? Type246 { get; set; } /// /// /// - public global::LabelStudio.MetricParam? Type247 { get; set; } + public global::LabelStudio.StateEnum? Type247 { get; set; } /// /// /// - public global::LabelStudio.MetricParamUpdateRequest? Type248 { get; set; } + public global::LabelStudio.MLBackendRequest? Type248 { get; set; } /// /// /// - public global::LabelStudio.ModeEnum? Type249 { get; set; } + public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type249 { get; set; } /// /// /// - public global::LabelStudio.ModelInterface? Type250 { get; set; } + public global::LabelStudio.MaybeExpandedComment? Type250 { get; set; } /// /// /// - public global::LabelStudio.SkillNameEnum? Type251 { get; set; } + public global::LabelStudio.MetricParam? Type251 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceRequest? Type252 { get; set; } + public global::LabelStudio.MetricParamUpdateRequest? Type252 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceSerializerGET? Type253 { get; set; } + public global::LabelStudio.ModelInterface? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::LabelStudio.SkillNameEnum? Type254 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnection? Type255 { get; set; } + public global::LabelStudio.ModelInterfaceRequest? Type255 { get; set; } /// /// /// - public global::LabelStudio.ProviderEnum? Type256 { get; set; } + public global::LabelStudio.ModelInterfaceSerializerGET? Type256 { get; set; } /// /// /// - public global::LabelStudio.ScopeEnum? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnectionRequest? Type258 { get; set; } + public global::LabelStudio.ModelProviderConnection? Type258 { get; set; } /// /// /// - public global::LabelStudio.ModelRun? Type259 { get; set; } + public global::LabelStudio.ProviderEnum? Type259 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetEnum? Type260 { get; set; } + public global::LabelStudio.ScopeEnum? Type260 { get; set; } /// /// /// - public global::LabelStudio.ModelRunStatusEnum? Type261 { get; set; } + public global::LabelStudio.ModelProviderConnectionRequest? Type261 { get; set; } /// /// /// - public global::LabelStudio.ModelRunRequest? Type262 { get; set; } + public global::LabelStudio.ModelRun? Type262 { get; set; } /// /// /// - public global::LabelStudio.Options165Enum? Type263 { get; set; } + public global::LabelStudio.ProjectSubsetEnum? Type263 { get; set; } /// /// /// - public global::LabelStudio.OrganizationId? Type264 { get; set; } + public global::LabelStudio.ModelRunStatusEnum? Type264 { get; set; } /// /// /// - public global::LabelStudio.OrganizationInvite? Type265 { get; set; } + public global::LabelStudio.ModelRunRequest? Type265 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMember? Type266 { get; set; } + public global::LabelStudio.Options165Enum? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::LabelStudio.OrganizationId? Type267 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberContributedToProject? Type268 { get; set; } + public global::LabelStudio.OrganizationInvite? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::LabelStudio.OrganizationMember? Type269 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberCreatedProject? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTag? Type271 { get; set; } + public global::LabelStudio.OrganizationMemberContributedToProject? Type271 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type273 { get; set; } + public global::LabelStudio.OrganizationMemberCreatedProject? Type273 { get; set; } /// /// /// - public byte[]? Type274 { get; set; } + public global::LabelStudio.OrganizationMemberTag? Type274 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatus? Type275 { get; set; } + public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type275 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type276 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type276 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagRequest? Type277 { get; set; } + public byte[]? Type277 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembershipRequest? Type278 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatus? Type278 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermission? Type279 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::LabelStudio.OrganizationMemberTagRequest? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::LabelStudio.OrganizationMembershipRequest? Type281 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRequest? Type282 { get; set; } + public global::LabelStudio.OrganizationPermission? Type282 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAllRolesProjectListList? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAnnotationHistoryList? Type285 { get; set; } + public global::LabelStudio.OrganizationPermissionRequest? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type286 { get; set; } + public global::LabelStudio.PaginatedAllRolesProjectListList? Type286 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelCreateList? Type287 { get; set; } + public global::System.Collections.Generic.IList? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type288 { get; set; } + public global::LabelStudio.PaginatedAnnotationHistoryList? Type288 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelLinkList? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::LabelStudio.PaginatedLabelCreateList? Type290 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelList? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::LabelStudio.PaginatedLabelLinkList? Type292 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type293 { get; set; } + public global::System.Collections.Generic.IList? Type293 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type294 { get; set; } + public global::LabelStudio.PaginatedLabelList? Type294 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseProjectCountsList? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type295 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type296 { get; set; } + public global::LabelStudio.PaginatedLseInterfaceList? Type296 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseUserList? Type297 { get; set; } + public global::System.Collections.Generic.IList? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type298 { get; set; } /// /// /// - public global::LabelStudio.PaginatedOrganizationMemberTagList? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::LabelStudio.PaginatedLseProjectCountsList? Type300 { get; set; } /// /// /// - public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type301 { get; set; } + public global::System.Collections.Generic.IList? Type301 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type302 { get; set; } + public global::LabelStudio.PaginatedLseUserList? Type302 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectMember? Type303 { get; set; } + public global::System.Collections.Generic.IList? Type303 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type304 { get; set; } + public global::LabelStudio.PaginatedOrganizationMemberTagList? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::System.Collections.Generic.IList? Type305 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTasksResponse? Type306 { get; set; } + public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type306 { get; set; } /// /// /// - public global::LabelStudio.PaginatedRoleBasedTaskList? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type308 { get; set; } + public global::LabelStudio.PaginatedProjectMember? Type308 { get; set; } /// /// /// - public global::LabelStudio.RoleBasedTask? Type309 { get; set; } + public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type309 { get; set; } /// /// /// - public global::LabelStudio.PaginatedStateModelList? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type311 { get; set; } + public global::LabelStudio.ProjectSubsetTasksResponse? Type311 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnalyticsViewRequest? Type312 { get; set; } + public global::LabelStudio.PaginatedRoleBasedTaskList? Type312 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationReviewRequest? Type313 { get; set; } + public global::System.Collections.Generic.IList? Type313 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type314 { get; set; } + public global::LabelStudio.RoleBasedTask? Type314 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type315 { get; set; } + public global::LabelStudio.PaginatedStateModelList? Type315 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::LabelStudio.PatchedBlueprintUpdateRequest? Type317 { get; set; } + public global::LabelStudio.PatchedAnalyticsViewRequest? Type317 { get; set; } /// /// /// - public global::LabelStudio.PatchedCommentRequest? Type318 { get; set; } + public global::LabelStudio.PatchedAnnotationReviewRequest? Type318 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksExportStorageRequest? Type319 { get; set; } + public global::LabelStudio.PatchedAzureDatasetStorageRequest? Type319 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksImportStorageRequest? Type320 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type320 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetRequest? Type321 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type321 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatasetViewRequest? Type322 { get; set; } + public global::LabelStudio.PatchedBlueprintUpdateRequest? Type322 { get; set; } /// /// /// - public global::LabelStudio.PatchedDefaultRoleRequest? Type323 { get; set; } + public global::LabelStudio.PatchedCommentRequest? Type323 { get; set; } /// /// /// - public global::LabelStudio.PatchedDimensionRequest? Type324 { get; set; } + public global::LabelStudio.PatchedDatabricksExportStorageRequest? Type324 { get; set; } /// /// /// - public global::LabelStudio.PatchedFileUploadRequest? Type325 { get; set; } + public global::LabelStudio.PatchedDatabricksImportStorageRequest? Type325 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type326 { get; set; } + public global::LabelStudio.PatchedDatasetRequest? Type326 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type327 { get; set; } + public global::LabelStudio.PatchedDatasetViewRequest? Type327 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type328 { get; set; } + public global::LabelStudio.PatchedDefaultRoleRequest? Type328 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type329 { get; set; } + public global::LabelStudio.PatchedDimensionRequest? Type329 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type330 { get; set; } + public global::LabelStudio.PatchedFewShotExampleRequest? Type330 { get; set; } /// /// /// - public global::LabelStudio.PatchedHotkeysRequest? Type331 { get; set; } + public global::LabelStudio.PatchedFileUploadRequest? Type331 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelLinkRequest? Type332 { get; set; } + public global::LabelStudio.PatchedGCSDatasetStorageRequest? Type332 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelRequest? Type333 { get; set; } + public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type333 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type334 { get; set; } + public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type334 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type335 { get; set; } + public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type335 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type336 { get; set; } + public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type336 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequest? Type337 { get; set; } + public global::LabelStudio.PatchedHotkeysRequest? Type337 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsRequest? Type338 { get; set; } + public global::LabelStudio.PatchedLabelLinkRequest? Type338 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type339 { get; set; } + public global::LabelStudio.PatchedLabelRequest? Type339 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type340 { get; set; } + public global::LabelStudio.PatchedLseInterfaceRequest? Type340 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseTaskRequest? Type341 { get; set; } + public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type341 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type342 { get; set; } + public global::System.Collections.Generic.IList>? Type342 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelInterfaceRequest? Type343 { get; set; } + public global::System.Collections.Generic.Dictionary? Type343 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelProviderConnectionRequest? Type344 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequest? Type344 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type345 { get; set; } + public global::LabelStudio.ReviewSettingsRequest? Type345 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type346 { get; set; } + public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type346 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationPermissionRequest? Type347 { get; set; } + public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type347 { get; set; } /// /// /// - public global::LabelStudio.PatchedPauseRequest? Type348 { get; set; } + public global::LabelStudio.PatchedLseTaskRequest? Type348 { get; set; } /// /// /// - public global::LabelStudio.ReasonEnum? Type349 { get; set; } + public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type349 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectTemplateRequest? Type350 { get; set; } + public global::LabelStudio.PatchedModelInterfaceRequest? Type350 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3DatasetStorageRequest? Type351 { get; set; } + public global::LabelStudio.PatchedModelProviderConnectionRequest? Type351 { get; set; } /// /// /// - public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type352 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type352 { get; set; } /// /// /// - public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type353 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type353 { get; set; } /// /// /// - public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type354 { get; set; } + public global::LabelStudio.PatchedOrganizationPermissionRequest? Type354 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type355 { get; set; } + public global::LabelStudio.PatchedPauseRequest? Type355 { get; set; } /// /// /// - public global::LabelStudio.PatchedWorkspaceRequest? Type356 { get; set; } + public global::LabelStudio.ReasonEnum? Type356 { get; set; } /// /// /// - public global::LabelStudio.Pause? Type357 { get; set; } + public global::LabelStudio.PatchedProjectTemplateRequest? Type357 { get; set; } /// /// /// - public global::LabelStudio.PauseRequest? Type358 { get; set; } + public global::LabelStudio.PatchedS3DatasetStorageRequest? Type358 { get; set; } /// /// /// - public global::LabelStudio.Prediction? Type359 { get; set; } + public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type359 { get; set; } /// /// /// - public global::LabelStudio.Project? Type360 { get; set; } + public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type360 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateRequest? Type361 { get; set; } + public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type361 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroup? Type362 { get; set; } + public global::System.Collections.Generic.IList? Type362 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRoleEnum? Type363 { get; set; } + public global::LabelStudio.PatchedWorkspaceRequest? Type363 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRequest? Type364 { get; set; } + public global::LabelStudio.Pause? Type364 { get; set; } /// /// /// - public global::LabelStudio.ProjectImport? Type365 { get; set; } + public global::LabelStudio.PauseRequest? Type365 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfig? Type366 { get; set; } + public global::LabelStudio.Prediction? Type366 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfigRequest? Type367 { get; set; } + public global::LabelStudio.Project? Type367 { get; set; } /// /// /// - public global::LabelStudio.ProjectMember? Type368 { get; set; } + public global::LabelStudio.ProjectDuplicateModeEnum? Type368 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRequest? Type369 { get; set; } + public global::LabelStudio.ProjectDuplicateRequest? Type369 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type370 { get; set; } + public global::LabelStudio.ProjectGroup? Type370 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type371 { get; set; } + public global::LabelStudio.ProjectGroupRoleEnum? Type371 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberRequest? Type372 { get; set; } + public global::LabelStudio.ProjectGroupRequest? Type372 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimport? Type373 { get; set; } + public global::LabelStudio.ProjectImport? Type373 { get; set; } /// /// /// - public global::LabelStudio.ProjectRole? Type374 { get; set; } + public global::LabelStudio.ProjectLabelConfig? Type374 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleRequest? Type375 { get; set; } + public global::LabelStudio.ProjectLabelConfigRequest? Type375 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetItem? Type376 { get; set; } + public global::LabelStudio.ProjectMember? Type376 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTaskItem? Type377 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRequest? Type377 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type378 { get; set; } + public global::System.Collections.Generic.IList? Type378 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplate? Type379 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type379 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplateRequest? Type380 { get; set; } + public global::LabelStudio.ProjectMemberRequest? Type380 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorage? Type381 { get; set; } + public global::LabelStudio.ProjectReimport? Type381 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorage? Type382 { get; set; } + public global::LabelStudio.ProjectRole? Type382 { get; set; } /// /// /// - public global::LabelStudio.RefinePromptRequestRequest? Type383 { get; set; } + public global::LabelStudio.ProjectRoleRequest? Type383 { get; set; } /// /// /// - public global::LabelStudio.RefinedPromptResponse? Type384 { get; set; } + public global::LabelStudio.ProjectSubsetItem? Type384 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersion? Type385 { get; set; } + public global::LabelStudio.ProjectSubsetTaskItem? Type385 { get; set; } /// /// /// - public global::LabelStudio.RequeueRejectedTasksModeEnum? Type386 { get; set; } + public global::System.Collections.Generic.IList? Type386 { get; set; } /// /// /// - public global::LabelStudio.ReviewCriteriaEnum? Type387 { get; set; } + public global::LabelStudio.ProjectTemplate? Type387 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsSamplingEnum? Type388 { get; set; } + public global::LabelStudio.ProjectTemplateRequest? Type388 { get; set; } /// /// /// - public global::LabelStudio.RevokeInviteRequest? Type389 { get; set; } + public global::LabelStudio.ReEvaluate? Type389 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorage? Type390 { get; set; } + public global::LabelStudio.ReEvaluateModeEnum? Type390 { get; set; } /// /// /// - public global::LabelStudio.S3DatasetStorageRequest? Type391 { get; set; } + public global::LabelStudio.ReEvaluateRequest? Type391 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorage? Type392 { get; set; } + public global::LabelStudio.RedisExportStorage? Type392 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorage? Type393 { get; set; } + public global::LabelStudio.RedisImportStorage? Type393 { get; set; } /// /// /// - public global::LabelStudio.SamlSettings? Type394 { get; set; } + public global::LabelStudio.RefinePromptRequestRequest? Type394 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type395 { get; set; } + public global::LabelStudio.RefinedPromptResponse? Type395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type396 { get; set; } + public global::LabelStudio.ThirdPartyModelVersion? Type396 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdate? Type397 { get; set; } + public global::LabelStudio.RequeueRejectedTasksModeEnum? Type397 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdateRequest? Type398 { get; set; } + public global::LabelStudio.ReviewCriteriaEnum? Type398 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type399 { get; set; } + public global::LabelStudio.ReviewSettingsSamplingEnum? Type399 { get; set; } /// /// /// - public global::LabelStudio.ScimSettings? Type400 { get; set; } + public global::LabelStudio.RevokeInviteRequest? Type400 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdate? Type401 { get; set; } + public global::LabelStudio.S3DatasetStorage? Type401 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdateRequest? Type402 { get; set; } + public global::LabelStudio.S3DatasetStorageRequest? Type402 { get; set; } /// /// /// - public global::LabelStudio.SendInviteRequest? Type403 { get; set; } + public global::LabelStudio.S3ExportStorage? Type403 { get; set; } /// /// /// - public global::LabelStudio.SerializationOption? Type404 { get; set; } + public global::LabelStudio.S3ImportStorage? Type404 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionRequest? Type405 { get; set; } + public global::LabelStudio.SamlSettings? Type405 { get; set; } /// /// /// - public global::LabelStudio.SessionTimeoutPolicy? Type406 { get; set; } + public global::System.Collections.Generic.IList? Type406 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillCancelResponse? Type407 { get; set; } + public global::System.Collections.Generic.IList>? Type407 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItem? Type408 { get; set; } + public global::LabelStudio.SamlSettingsUpdate? Type408 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItemResponse? Type409 { get; set; } + public global::LabelStudio.SamlSettingsUpdateRequest? Type409 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillProgress? Type410 { get; set; } + public global::System.Collections.Generic.IList? Type410 { get; set; } /// /// /// - public global::LabelStudio.StateTriggeredBy? Type411 { get; set; } + public global::LabelStudio.ScimSettings? Type411 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobListResponse? Type412 { get; set; } + public global::LabelStudio.ScimSettingsUpdate? Type412 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type413 { get; set; } + public global::LabelStudio.ScimSettingsUpdateRequest? Type413 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillOrgStatus? Type414 { get; set; } + public global::LabelStudio.SendInviteRequest? Type414 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillResponse? Type415 { get; set; } + public global::LabelStudio.SerializationOption? Type415 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type416 { get; set; } + public global::LabelStudio.SerializationOptionRequest? Type416 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillStatusResponse? Type417 { get; set; } + public global::LabelStudio.SessionTimeoutPolicy? Type417 { get; set; } /// /// /// - public global::LabelStudio.TriggeredBy? Type418 { get; set; } + public global::LabelStudio.StateBackfillCancelResponse? Type418 { get; set; } /// /// /// - public global::LabelStudio.TaskAgreementMatrixResponse? Type419 { get; set; } + public global::LabelStudio.StateBackfillJobItem? Type419 { get; set; } /// /// /// - public global::LabelStudio.TaskAssignment? Type420 { get; set; } + public global::LabelStudio.StateBackfillJobItemResponse? Type420 { get; set; } /// /// /// - public global::LabelStudio.TypeEnum? Type421 { get; set; } + public global::LabelStudio.StateBackfillProgress? Type421 { get; set; } /// /// /// - public global::LabelStudio.TaskEvent? Type422 { get; set; } + public global::LabelStudio.StateTriggeredBy? Type422 { get; set; } /// /// /// - public global::LabelStudio.TaskEventRequest? Type423 { get; set; } + public global::LabelStudio.StateBackfillJobListResponse? Type423 { get; set; } /// /// /// - public global::LabelStudio.TaskSimple? Type424 { get; set; } + public global::System.Collections.Generic.IList? Type424 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type425 { get; set; } + public global::LabelStudio.StateBackfillOrgStatus? Type425 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type426 { get; set; } + public global::LabelStudio.StateBackfillResponse? Type426 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersionRequest? Type427 { get; set; } + public global::System.Collections.Generic.IList? Type427 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshRequest? Type428 { get; set; } + public global::LabelStudio.StateBackfillStatusResponse? Type428 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshResponse? Type429 { get; set; } + public global::LabelStudio.TriggeredBy? Type429 { get; set; } /// /// /// - public global::LabelStudio.TokenRotateResponse? Type430 { get; set; } + public global::LabelStudio.TaskAgreementMatrixResponse? Type430 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type431 { get; set; } + public global::LabelStudio.TaskAssignment? Type431 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type432 { get; set; } + public global::LabelStudio.TypeEnum? Type432 { get; set; } /// /// /// - public global::LabelStudio.VersionResponse? Type433 { get; set; } + public global::LabelStudio.TaskEvent? Type433 { get; set; } /// /// /// - public global::LabelStudio.View? Type434 { get; set; } + public global::LabelStudio.TaskEventRequest? Type434 { get; set; } /// /// /// - public global::LabelStudio.ViewOrderRequest? Type435 { get; set; } + public global::LabelStudio.TaskSimple? Type435 { get; set; } /// /// /// - public global::LabelStudio.Webhook? Type436 { get; set; } + public global::System.Collections.Generic.IList? Type436 { get; set; } /// /// /// - public global::LabelStudio.WebhookRequest? Type437 { get; set; } + public global::System.Collections.Generic.IList? Type437 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdate? Type438 { get; set; } + public global::LabelStudio.ThirdPartyModelVersionRequest? Type438 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdateRequest? Type439 { get; set; } + public global::LabelStudio.TokenRefreshRequest? Type439 { get; set; } /// /// /// - public global::LabelStudio.WhoAmILseFields? Type440 { get; set; } + public global::LabelStudio.TokenRefreshResponse? Type440 { get; set; } /// /// /// - public global::LabelStudio.WhoAmIUser? Type441 { get; set; } + public global::LabelStudio.TokenRotateResponse? Type441 { get; set; } /// /// /// - public global::LabelStudio.Workspace? Type442 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type442 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type443 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type443 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreate? Type444 { get; set; } + public global::LabelStudio.VersionResponse? Type444 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreateRequest? Type445 { get; set; } + public global::LabelStudio.View? Type445 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberList? Type446 { get; set; } + public global::LabelStudio.ViewOrderRequest? Type446 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceProjectsRequest? Type447 { get; set; } + public global::LabelStudio.Webhook? Type447 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceRequest? Type448 { get; set; } + public global::LabelStudio.WebhookRequest? Type448 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsPartialUpdateRequest? Type449 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdate? Type449 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequest? Type450 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdateRequest? Type450 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFilters? Type451 { get; set; } + public global::LabelStudio.WhoAmILseFields? Type451 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction? Type452 { get; set; } + public global::LabelStudio.WhoAmIUser? Type452 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type453 { get; set; } + public global::LabelStudio.Workspace? Type453 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItem? Type454 { get; set; } + public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type454 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter? Type455 { get; set; } + public global::LabelStudio.WorkspaceMemberCreate? Type455 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator? Type456 { get; set; } + public global::LabelStudio.WorkspaceMemberCreateRequest? Type456 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type457 { get; set; } + public global::LabelStudio.WorkspaceMemberList? Type457 { get; set; } /// /// /// - public float? Type458 { get; set; } + public global::LabelStudio.WorkspaceProjectsRequest? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::LabelStudio.WorkspaceRequest? Type459 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestOrderingItem? Type460 { get; set; } + public global::LabelStudio.ApiAnnotationsPartialUpdateRequest? Type460 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type461 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequest? Type461 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse? Type462 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFilters? Type462 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue? Type463 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersConjunction? Type463 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequest? Type464 { get; set; } + public global::System.Collections.Generic.IList? Type464 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestData? Type465 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItem? Type465 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFilters? Type466 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemFilter? Type466 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction? Type467 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestFiltersItemOperator? Type467 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type468 { get; set; } + public global::LabelStudio.OneOf? Type468 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem? Type469 { get; set; } + public float? Type469 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter? Type470 { get; set; } + public global::System.Collections.Generic.IList? Type470 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator? Type471 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestOrderingItem? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::LabelStudio.OneOf? Type472 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem? Type473 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllFalse? Type473 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequest? Type474 { get; set; } + public global::LabelStudio.ApiDmActionsCreateRequestSelectedItemsAllTrue? Type474 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestData? Type475 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequest? Type475 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters? Type476 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestData? Type476 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction? Type477 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFilters? Type477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type478 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersConjunction? Type478 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem? Type479 { get; set; } + public global::System.Collections.Generic.IList? Type479 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter? Type480 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItem? Type480 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator? Type481 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemFilter? Type481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type482 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataFiltersItemOperator? Type482 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem? Type483 { get; set; } + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequest? Type484 { get; set; } + public global::LabelStudio.ApiDmViewsCreateRequestDataOrderingItem? Type484 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestData? Type485 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequest? Type485 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFilters? Type486 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestData? Type486 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction? Type487 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFilters? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersConjunction? Type488 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem? Type489 { get; set; } + public global::System.Collections.Generic.IList? Type489 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter? Type490 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItem? Type490 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator? Type491 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemFilter? Type491 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type492 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataFiltersItemOperator? Type492 { get; set; } /// /// /// - public global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type494 { get; set; } + public global::LabelStudio.ApiDmViewsPartialUpdateRequestDataOrderingItem? Type494 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest? Type495 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequest? Type495 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type496 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestData? Type496 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage? Type497 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFilters? Type497 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole? Type498 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersConjunction? Type498 { get; set; } /// /// /// - public global::LabelStudio.ApiMlCreateRequest? Type499 { get; set; } + public global::System.Collections.Generic.IList? Type499 { get; set; } /// /// /// - public global::LabelStudio.ApiMlCreateRequestAuthMethod? Type500 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItem? Type500 { get; set; } /// /// /// - public global::LabelStudio.ApiMlPartialUpdateRequest? Type501 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemFilter? Type501 { get; set; } /// /// /// - public global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod? Type502 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataFiltersItemOperator? Type502 { get; set; } /// /// /// - public global::LabelStudio.ApiMlTrainCreateRequest? Type503 { get; set; } + public global::System.Collections.Generic.IList? Type503 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsCreateRequest? Type504 { get; set; } + public global::LabelStudio.ApiDmViewsUpdateRequestDataOrderingItem? Type504 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsPartialUpdateRequest? Type505 { get; set; } + public global::System.Collections.Generic.IList? Type505 { get; set; } /// /// /// - public global::LabelStudio.ApiPredictionsUpdateRequest? Type506 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequest? Type506 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest? Type507 { get; set; } + public global::System.Collections.Generic.IList? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessage? Type508 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest? Type509 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateRequestMessageRole? Type509 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters? Type510 { get; set; } + public global::LabelStudio.ApiMlCreateRequest? Type510 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction? Type511 { get; set; } + public global::LabelStudio.ApiMlCreateRequestAuthMethod? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::LabelStudio.ApiMlPartialUpdateRequest? Type512 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem? Type513 { get; set; } + public global::LabelStudio.ApiMlPartialUpdateRequestAuthMethod? Type513 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter? Type514 { get; set; } + public global::LabelStudio.ApiMlTrainCreateRequest? Type514 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator? Type515 { get; set; } + public global::LabelStudio.ApiPredictionsCreateRequest? Type515 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type516 { get; set; } + public global::LabelStudio.ApiPredictionsPartialUpdateRequest? Type516 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type517 { get; set; } + public global::LabelStudio.ApiPredictionsUpdateRequest? Type517 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type518 { get; set; } + public global::LabelStudio.ApiProjectTemplatesCreateProjectCreateRequest? Type518 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type519 { get; set; } + public global::System.Collections.Generic.IList? Type519 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type520 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequest? Type520 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type521 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFilters? Type521 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type522 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersConjunction? Type522 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzureCreateRequest? Type523 { get; set; } + public global::System.Collections.Generic.IList? Type523 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type524 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItem? Type524 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type525 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemFilter? Type525 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type526 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestFiltersItemOperator? Type526 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type527 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllFalse? Type527 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type528 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestSelectedItemsAllTrue? Type528 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type529 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateRequestType? Type529 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type530 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequest? Type530 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type531 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesPartialUpdateRequestType? Type531 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type532 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2Request? Type532 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type533 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreate2RequestType? Type533 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type534 { get; set; } + public global::LabelStudio.ApiStoragesAzureCreateRequest? Type534 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type535 { get; set; } + public global::LabelStudio.ApiStoragesAzureValidateCreateRequest? Type535 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type536 { get; set; } + public global::LabelStudio.ApiStoragesAzurePartialUpdateRequest? Type536 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type537 { get; set; } + public global::LabelStudio.ApiStoragesExportAzureCreateRequest? Type537 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type538 { get; set; } + public global::LabelStudio.ApiStoragesExportAzureValidateCreateRequest? Type538 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type539 { get; set; } + public global::LabelStudio.ApiStoragesExportAzurePartialUpdateRequest? Type539 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type540 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsCreateRequest? Type540 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsCreateRequest? Type541 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsValidateCreateRequest? Type541 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type542 { get; set; } + public global::LabelStudio.ApiStoragesExportGcsPartialUpdateRequest? Type542 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type543 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesCreateRequest? Type543 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type544 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesValidateCreateRequest? Type544 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type545 { get; set; } + public global::LabelStudio.ApiStoragesExportLocalfilesPartialUpdateRequest? Type545 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type546 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisCreateRequest? Type546 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisCreateRequest? Type547 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisValidateCreateRequest? Type547 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type548 { get; set; } + public global::LabelStudio.ApiStoragesExportRedisPartialUpdateRequest? Type548 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type549 { get; set; } + public global::LabelStudio.ApiStoragesExportS3CreateRequest? Type549 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3CreateRequest? Type550 { get; set; } + public global::LabelStudio.ApiStoragesExportS3ValidateCreateRequest? Type550 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type551 { get; set; } + public global::LabelStudio.ApiStoragesExportS3PartialUpdateRequest? Type551 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type552 { get; set; } + public global::LabelStudio.ApiStoragesGcsCreateRequest? Type552 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type553 { get; set; } + public global::LabelStudio.ApiStoragesGcsValidateCreateRequest? Type553 { get; set; } /// /// /// - public global::LabelStudio.ApiUsersCreateRequest? Type554 { get; set; } + public global::LabelStudio.ApiStoragesGcsPartialUpdateRequest? Type554 { get; set; } /// /// /// - public global::LabelStudio.ApiUsersPartialUpdateRequest? Type555 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesCreateRequest? Type555 { get; set; } /// /// /// - public global::LabelStudio.ApiActivityLogsListMethod? Type556 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesValidateCreateRequest? Type556 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateId? Type557 { get; set; } + public global::LabelStudio.ApiStoragesLocalfilesPartialUpdateRequest? Type557 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMembershipsListScope? Type558 { get; set; } + public global::LabelStudio.ApiStoragesRedisCreateRequest? Type558 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type559 { get; set; } + public global::LabelStudio.ApiStoragesRedisValidateCreateRequest? Type559 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type560 { get; set; } + public global::LabelStudio.ApiStoragesRedisPartialUpdateRequest? Type560 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type561 { get; set; } + public global::LabelStudio.ApiStoragesS3CreateRequest? Type561 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksListFields? Type562 { get; set; } + public global::LabelStudio.ApiStoragesS3ValidateCreateRequest? Type562 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type563 { get; set; } + public global::LabelStudio.ApiStoragesS3PartialUpdateRequest? Type563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type564 { get; set; } + public global::LabelStudio.ApiTasksAnnotationsCreateRequest? Type564 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type565 { get; set; } + public global::LabelStudio.ApiUsersCreateRequest? Type565 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type566 { get; set; } + public global::LabelStudio.ApiUsersPartialUpdateRequest? Type566 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type567 { get; set; } + public global::LabelStudio.ApiActivityLogsListMethod? Type567 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type568 { get; set; } + public global::LabelStudio.ApiDmActionsCreateId? Type568 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type569 { get; set; } + public global::LabelStudio.ApiOrganizationsMembershipsListScope? Type569 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type570 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type571 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type572 { get; set; } + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type572 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type573 { get; set; } + public global::LabelStudio.ApiTasksListFields? Type573 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type574 { get; set; } + public global::System.Collections.Generic.IList? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::System.Collections.Generic.IList? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type579 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type579 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type581 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type582 { get; set; } + public global::System.Collections.Generic.IList? Type582 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type583 { get; set; } + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type583 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type584 { get; set; } + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type584 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type586 { get; set; } + public global::System.Collections.Generic.IList? Type586 { get; set; } /// /// /// - public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type587 { get; set; } + public global::System.Collections.Generic.IList? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::System.Collections.Generic.IList? Type588 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type589 { get; set; } + public global::System.Collections.Generic.IList? Type589 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type590 { get; set; } + public global::System.Collections.Generic.IList? Type590 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type591 { get; set; } + public global::System.Collections.Generic.IList? Type591 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type593 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type593 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type594 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type594 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type595 { get; set; } + public global::LabelStudio.OneOf>? Type595 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type596 { get; set; } + public global::System.Collections.Generic.IList? Type596 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type597 { get; set; } + public global::System.Collections.Generic.IList? Type597 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type598 { get; set; } + public global::LabelStudio.ApiInferenceRunsIndicatorsRetrieveResponseItem? Type598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type599 { get; set; } + public global::System.Collections.Generic.IList? Type599 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type600 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type601 { get; set; } + public global::System.Collections.Generic.IList? Type601 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type602 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type602 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type603 { get; set; } + public global::System.Collections.Generic.IList? Type603 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type604 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type604 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type605 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type605 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type606 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type606 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type607 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type607 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type608 { get; set; } + public global::System.Collections.Generic.IList? Type608 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type609 { get; set; } + public global::System.Collections.Generic.IList? Type609 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type610 { get; set; } + public global::System.Collections.Generic.IList? Type610 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type611 { get; set; } + public global::System.Collections.Generic.IList? Type611 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type612 { get; set; } + public global::System.Collections.Generic.IList? Type612 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type613 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type613 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type614 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type614 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type615 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type615 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type616 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type616 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type617 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type617 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type618 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type618 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type619 { get; set; } + public global::System.Collections.Generic.IList? Type619 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type620 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type620 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type621 { get; set; } + public global::System.Collections.Generic.IList? Type621 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type622 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type622 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type623 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type623 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type624 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type624 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type625 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type625 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type626 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type626 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type627 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkCreateResponse? Type627 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type628 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type629 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type629 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type630 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type630 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type631 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type631 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type632 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type632 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type633 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type633 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type634 { get; set; } + public global::LabelStudio.OneOf>? Type634 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type635 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type635 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type636 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type637 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type637 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type638 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type639 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type639 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type640 { get; set; } + public global::System.Collections.Generic.IList? Type640 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type641 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type641 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type642 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type642 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type643 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type643 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type644 { get; set; } + public global::System.Collections.Generic.IList? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type646 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type647 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type647 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type648 { get; set; } + public global::System.Collections.Generic.IList? Type648 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type649 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesCreateResponse? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::System.Collections.Generic.IList? Type650 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type651 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type651 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type652 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type652 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type653 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieve2Response? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieve2Response? Type654 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type655 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type656 { get; set; } + public global::System.Collections.Generic.IList? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type657 { get; set; } + public global::System.Collections.Generic.IList? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type659 { get; set; } + public global::System.Collections.Generic.IList? Type659 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type660 { get; set; } + public global::System.Collections.Generic.IList? Type660 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type661 { get; set; } + public global::System.Collections.Generic.IList? Type661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type663 { get; set; } + public global::System.Collections.Generic.IList? Type663 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type664 { get; set; } + public global::System.Collections.Generic.IList? Type664 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type666 { get; set; } + public global::System.Collections.Generic.IList? Type666 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type667 { get; set; } + public global::System.Collections.Generic.IList? Type667 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type668 { get; set; } + public global::System.Collections.Generic.IList? Type668 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type669 { get; set; } + public global::System.Collections.Generic.IList? Type669 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::System.Collections.Generic.IList? Type671 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type672 { get; set; } + public global::System.Collections.Generic.IList? Type672 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type673 { get; set; } + public global::System.Collections.Generic.IList? Type673 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type674 { get; set; } + public global::System.Collections.Generic.IList? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type676 { get; set; } + public global::System.Collections.Generic.IList? Type676 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type677 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type677 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type678 { get; set; } + public global::System.Collections.Generic.IList? Type678 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type679 { get; set; } + public global::System.Collections.Generic.IList? Type679 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type680 { get; set; } + public global::System.Collections.Generic.IList? Type680 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type681 { get; set; } + public global::System.Collections.Generic.IList? Type681 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type682 { get; set; } + public global::System.Collections.Generic.IList? Type682 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type683 { get; set; } + public global::System.Collections.Generic.IList? Type683 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type684 { get; set; } + public global::System.Collections.Generic.IList? Type684 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type685 { get; set; } + public global::System.Collections.Generic.IList? Type685 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type686 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type686 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type687 { get; set; } + public global::System.Collections.Generic.IList? Type687 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type688 { get; set; } + public global::System.Collections.Generic.IList? Type688 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type690 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type690 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type691 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type691 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type692 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type692 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type693 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type694 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type695 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type695 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type696 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type696 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type697 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type698 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type698 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type699 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type700 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type701 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type702 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type703 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type704 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type705 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type706 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type707 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type708 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type709 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type710 { get; set; } /// /// @@ -2989,394 +3037,402 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType42 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List>? ListType50 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType51 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType52 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType53 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType52 { get; set; } + public global::System.Collections.Generic.List? ListType54 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType53 { get; set; } + public global::System.Collections.Generic.List>? ListType55 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType54 { get; set; } + public global::System.Collections.Generic.List? ListType56 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType55 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType56 { get; set; } + public global::System.Collections.Generic.List? ListType58 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType59 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType60 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType61 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType62 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType63 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::LabelStudio.OneOf>? ListType87 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? ListType86 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType87 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType88 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType89 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType90 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType91 { get; set; } + public global::System.Collections.Generic.List? ListType93 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType92 { get; set; } + public global::System.Collections.Generic.List? ListType94 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType93 { get; set; } + public global::System.Collections.Generic.List? ListType95 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType94 { get; set; } + public global::System.Collections.Generic.List? ListType96 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType95 { get; set; } + public global::System.Collections.Generic.List? ListType97 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType96 { get; set; } + public global::System.Collections.Generic.List? ListType98 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType97 { get; set; } + public global::System.Collections.Generic.List? ListType99 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType98 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType100 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType99 { get; set; } + public global::System.Collections.Generic.Dictionary>>? ListType101 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? ListType100 { get; set; } + public global::System.Collections.Generic.List? ListType102 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType101 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType102 { get; set; } + public global::System.Collections.Generic.List? ListType104 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType126 { get; set; } + public global::System.Collections.Generic.List? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType127 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs index 791a977..e9214d5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LabelStudioClient.g.cs @@ -247,6 +247,15 @@ public sealed partial class LabelStudioClient : global::LabelStudio.ILabelStudio JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public InterfacesClient Interfaces => new InterfacesClient(HttpClient, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs index ae22f5c..d779887 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs @@ -141,6 +141,24 @@ public sealed partial class AllRolesProjectList [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimple? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Plugins /// @@ -224,6 +242,12 @@ public sealed partial class AllRolesProjectList [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Included only in responses /// @@ -473,6 +497,18 @@ public sealed partial class AllRolesProjectList [global::System.Text.Json.Serialization.JsonPropertyName("skipped_annotations_number")] public string SkippedAnnotationsNumber { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Start model training after any annotations are submitted or updated
/// Included only in responses @@ -523,6 +559,12 @@ public sealed partial class AllRolesProjectList [global::System.Text.Json.Serialization.JsonPropertyName("total_predictions_number")] public int TotalPredictionsNumber { get; set; } = default!; + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Included only in responses /// @@ -598,6 +640,9 @@ public sealed partial class AllRolesProjectList /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -623,6 +668,7 @@ public sealed partial class AllRolesProjectList /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -685,6 +731,8 @@ public sealed partial class AllRolesProjectList /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -692,6 +740,9 @@ public sealed partial class AllRolesProjectList /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Included only in responses /// @@ -810,6 +861,9 @@ public AllRolesProjectList( string? commentClassificationConfig, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimple? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? customScript, int? customTaskLockTtl, object? dataTypes, @@ -819,6 +873,7 @@ public AllRolesProjectList( bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -841,8 +896,11 @@ public AllRolesProjectList( bool? showSkipButton, bool? showUnusedDataColumnsToAnnotators, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, bool? strictTaskOverlap, string? title, + bool? useCustomInterface, int? usefulAnnotationNumber, bool allowStream = default!, global::System.Collections.Generic.IList blueprints = default!, @@ -894,6 +952,9 @@ public AllRolesProjectList( this.ControlWeights = controlWeights; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.CustomScript = customScript; this.CustomTaskLockTtl = customTaskLockTtl; this.DataTypes = dataTypes; @@ -907,6 +968,7 @@ public AllRolesProjectList( this.FinishedTaskNumber = finishedTaskNumber; this.GroundTruthNumber = groundTruthNumber; this.Id = id; + this.InputSchema = inputSchema; this.IsDimensionsEnabled = isDimensionsEnabled; this.IsDraft = isDraft; this.IsPublished = isPublished; @@ -944,6 +1006,8 @@ public AllRolesProjectList( this.ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators; this.SkipQueue = skipQueue; this.SkippedAnnotationsNumber = skippedAnnotationsNumber; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StartTrainingOnAnnotationUpdate = startTrainingOnAnnotationUpdate; this.State = state; this.StrictTaskOverlap = strictTaskOverlap; @@ -951,6 +1015,7 @@ public AllRolesProjectList( this.Title = title; this.TotalAnnotationsNumber = totalAnnotationsNumber; this.TotalPredictionsNumber = totalPredictionsNumber; + this.UseCustomInterface = useCustomInterface; this.UsefulAnnotationNumber = usefulAnnotationNumber; this.Workspace = workspace; this.WorkspaceTitle = workspaceTitle; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.Json.g.cs new file mode 100644 index 0000000..181f2b3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class FewShotExample + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.FewShotExample? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.FewShotExample), + jsonSerializerContext) as global::LabelStudio.FewShotExample; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.FewShotExample? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.FewShotExample), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.FewShotExample; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.g.cs new file mode 100644 index 0000000..67fee3c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExample.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class FewShotExample + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("annotation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Annotation { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("annotation_result")] + public string AnnotationResult { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime CreatedAt { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } = default!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("order")] + public int? Order { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Task { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("task_data")] + public string TaskData { get; set; } = default!; + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public FewShotExample( + int annotation, + int task, + int? order, + string annotationResult = default!, + global::System.DateTime createdAt = default!, + int id = default!, + string taskData = default!) + { + this.Annotation = annotation; + this.AnnotationResult = annotationResult; + this.CreatedAt = createdAt; + this.Id = id; + this.Order = order; + this.Task = task; + this.TaskData = taskData; + } + + /// + /// Initializes a new instance of the class. + /// + public FewShotExample() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.Json.g.cs new file mode 100644 index 0000000..c17c53d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class FewShotExampleRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.FewShotExampleRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.FewShotExampleRequest), + jsonSerializerContext) as global::LabelStudio.FewShotExampleRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.FewShotExampleRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.FewShotExampleRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.FewShotExampleRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.g.cs new file mode 100644 index 0000000..bf26569 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.FewShotExampleRequest.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class FewShotExampleRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("annotation")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Annotation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("order")] + public int? Order { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Task { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public FewShotExampleRequest( + int annotation, + int task, + int? order) + { + this.Annotation = annotation; + this.Order = order; + this.Task = task; + } + + /// + /// Initializes a new instance of the class. + /// + public FewShotExampleRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.Json.g.cs new file mode 100644 index 0000000..95d4e80 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterface + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterface? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterface), + jsonSerializerContext) as global::LabelStudio.LseInterface; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterface? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterface), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterface; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.g.cs new file mode 100644 index 0000000..bffbc07 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterface.g.cs @@ -0,0 +1,226 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseInterface + { + /// + /// AI-produced code snapshots for session continuity + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifacts")] + public object? Artifacts { get; set; } + + /// + /// JSX source code for the interface screen module + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("compiled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Compiled { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + public global::System.DateTime CreatedAt { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] + public global::LabelStudio.UserSimple CreatedBy { get; set; } = default!; + + /// + /// Sample task data for preview + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_sample")] + public object? DataSample { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } = default!; + + /// + /// JSON Schema declaring expected task data field types for import validation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + + /// + /// HumanSignal-provided system template visible to all organizations
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("is_system")] + public bool IsSystem { get; set; } = default!; + + /// + /// Chat conversation history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public object? Messages { get; set; } + + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// Default Value: 0
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("projects_count")] + public int ProjectsCount { get; set; } = default!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime UpdatedAt { get; set; } = default!; + + /// + /// Code version history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("versions")] + public object? Versions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + public int? Workspace { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// Code version history + /// + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// HumanSignal-provided system template visible to all organizations
+ /// Included only in responses + /// + /// + /// Default Value: 0
+ /// Included only in responses + /// + /// + /// Included only in responses + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LseInterface( + string code, + string compiled, + string title, + object? artifacts, + object? dataSample, + string? description, + object? inputSchema, + object? messages, + object? outputSchema, + object? versions, + int? workspace, + global::System.DateTime createdAt = default!, + global::LabelStudio.UserSimple createdBy = default!, + int id = default!, + bool isSystem = default!, + int projectsCount = default!, + global::System.DateTime updatedAt = default!) + { + this.Artifacts = artifacts; + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Compiled = compiled ?? throw new global::System.ArgumentNullException(nameof(compiled)); + this.CreatedAt = createdAt; + this.CreatedBy = createdBy; + this.DataSample = dataSample; + this.Description = description; + this.Id = id; + this.InputSchema = inputSchema; + this.IsSystem = isSystem; + this.Messages = messages; + this.OutputSchema = outputSchema; + this.ProjectsCount = projectsCount; + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.UpdatedAt = updatedAt; + this.Versions = versions; + this.Workspace = workspace; + } + + /// + /// Initializes a new instance of the class. + /// + public LseInterface() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.Json.g.cs new file mode 100644 index 0000000..4aa4f75 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceArtifacts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceArtifacts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceArtifacts), + jsonSerializerContext) as global::LabelStudio.LseInterfaceArtifacts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceArtifacts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceArtifacts), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceArtifacts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.g.cs new file mode 100644 index 0000000..cc13ce5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceArtifacts.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// AI-produced code snapshots for session continuity + /// + public sealed partial class LseInterfaceArtifacts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.Json.g.cs new file mode 100644 index 0000000..de3b245 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceDataSample + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceDataSample? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceDataSample), + jsonSerializerContext) as global::LabelStudio.LseInterfaceDataSample; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceDataSample? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceDataSample), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceDataSample; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.g.cs new file mode 100644 index 0000000..d9c6ef4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceDataSample.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Sample task data for preview + /// + public sealed partial class LseInterfaceDataSample + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.Json.g.cs new file mode 100644 index 0000000..ad0898b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceInputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceInputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceInputSchema), + jsonSerializerContext) as global::LabelStudio.LseInterfaceInputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceInputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceInputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceInputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.g.cs new file mode 100644 index 0000000..ef393c6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceInputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring expected task data field types for import validation + /// + public sealed partial class LseInterfaceInputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.Json.g.cs new file mode 100644 index 0000000..cf7cc28 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceMessages + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceMessages? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceMessages), + jsonSerializerContext) as global::LabelStudio.LseInterfaceMessages; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceMessages? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceMessages), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceMessages; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.g.cs new file mode 100644 index 0000000..17926df --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceMessages.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Chat conversation history + /// + public sealed partial class LseInterfaceMessages + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.Json.g.cs new file mode 100644 index 0000000..f7dfe78 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceOutputSchema), + jsonSerializerContext) as global::LabelStudio.LseInterfaceOutputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceOutputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.g.cs new file mode 100644 index 0000000..c383a24 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceOutputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + public sealed partial class LseInterfaceOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.Json.g.cs new file mode 100644 index 0000000..6fda25c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequest), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.g.cs new file mode 100644 index 0000000..6f55680 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequest.g.cs @@ -0,0 +1,150 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class LseInterfaceRequest + { + /// + /// AI-produced code snapshots for session continuity + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifacts")] + public object? Artifacts { get; set; } + + /// + /// JSX source code for the interface screen module + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("compiled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Compiled { get; set; } + + /// + /// Sample task data for preview + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_sample")] + public object? DataSample { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// JSON Schema declaring expected task data field types for import validation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + + /// + /// Chat conversation history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public object? Messages { get; set; } + + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Title { get; set; } + + /// + /// Code version history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("versions")] + public object? Versions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + public int? Workspace { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// Code version history + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public LseInterfaceRequest( + string code, + string compiled, + string title, + object? artifacts, + object? dataSample, + string? description, + object? inputSchema, + object? messages, + object? outputSchema, + object? versions, + int? workspace) + { + this.Artifacts = artifacts; + this.Code = code ?? throw new global::System.ArgumentNullException(nameof(code)); + this.Compiled = compiled ?? throw new global::System.ArgumentNullException(nameof(compiled)); + this.DataSample = dataSample; + this.Description = description; + this.InputSchema = inputSchema; + this.Messages = messages; + this.OutputSchema = outputSchema; + this.Title = title ?? throw new global::System.ArgumentNullException(nameof(title)); + this.Versions = versions; + this.Workspace = workspace; + } + + /// + /// Initializes a new instance of the class. + /// + public LseInterfaceRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.Json.g.cs new file mode 100644 index 0000000..d80b16e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestArtifacts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestArtifacts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestArtifacts), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestArtifacts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestArtifacts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestArtifacts), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestArtifacts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.g.cs new file mode 100644 index 0000000..1fc79f6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestArtifacts.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// AI-produced code snapshots for session continuity + /// + public sealed partial class LseInterfaceRequestArtifacts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.Json.g.cs new file mode 100644 index 0000000..46792ae --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestDataSample + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestDataSample? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestDataSample), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestDataSample; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestDataSample? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestDataSample), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestDataSample; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.g.cs new file mode 100644 index 0000000..2bcde34 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestDataSample.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Sample task data for preview + /// + public sealed partial class LseInterfaceRequestDataSample + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.Json.g.cs new file mode 100644 index 0000000..e10085c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestInputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestInputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestInputSchema), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestInputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestInputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestInputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestInputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.g.cs new file mode 100644 index 0000000..f70e137 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestInputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring expected task data field types for import validation + /// + public sealed partial class LseInterfaceRequestInputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.Json.g.cs new file mode 100644 index 0000000..af3fc1c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestMessages + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestMessages? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestMessages), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestMessages; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestMessages? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestMessages), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestMessages; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.g.cs new file mode 100644 index 0000000..89484a4 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestMessages.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Chat conversation history + /// + public sealed partial class LseInterfaceRequestMessages + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.Json.g.cs new file mode 100644 index 0000000..ca74ba8 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestOutputSchema), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestOutputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestOutputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.g.cs new file mode 100644 index 0000000..507dfba --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestOutputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + public sealed partial class LseInterfaceRequestOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.Json.g.cs new file mode 100644 index 0000000..a02ec41 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceRequestVersions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceRequestVersions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceRequestVersions), + jsonSerializerContext) as global::LabelStudio.LseInterfaceRequestVersions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceRequestVersions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceRequestVersions), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceRequestVersions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.g.cs new file mode 100644 index 0000000..34f61ac --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceRequestVersions.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Code version history + /// + public sealed partial class LseInterfaceRequestVersions + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.Json.g.cs new file mode 100644 index 0000000..5e342a9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class LseInterfaceVersions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.LseInterfaceVersions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.LseInterfaceVersions), + jsonSerializerContext) as global::LabelStudio.LseInterfaceVersions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.LseInterfaceVersions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.LseInterfaceVersions), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.LseInterfaceVersions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.g.cs new file mode 100644 index 0000000..b0c7ceb --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseInterfaceVersions.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Code version history + /// + public sealed partial class LseInterfaceVersions + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs index 5fd810d..66377d8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs @@ -127,6 +127,24 @@ public sealed partial class LseProject [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimple? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Plugins /// @@ -204,6 +222,12 @@ public sealed partial class LseProject [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Included only in responses /// @@ -426,6 +450,18 @@ public sealed partial class LseProject [global::System.Text.Json.Serialization.JsonPropertyName("skipped_annotations_number")] public int SkippedAnnotationsNumber { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Start model training after any annotations are submitted or updated
/// Included only in responses @@ -490,6 +526,12 @@ public sealed partial class LseProject [global::System.Text.Json.Serialization.JsonPropertyName("total_predictions_number")] public int TotalPredictionsNumber { get; set; } = default!; + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number
/// Included only in responses @@ -567,6 +609,9 @@ public sealed partial class LseProject /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -592,6 +637,7 @@ public sealed partial class LseProject /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -654,6 +700,8 @@ public sealed partial class LseProject /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -667,6 +715,9 @@ public sealed partial class LseProject /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Flag to detect is project ready for labeling
/// Included only in responses @@ -769,6 +820,9 @@ public LseProject( string? commentClassificationConfig, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimple? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? customScript, int? customTaskLockTtl, object? dataTypes, @@ -778,6 +832,7 @@ public LseProject( bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -800,10 +855,13 @@ public LseProject( bool? showSkipButton, bool? showUnusedDataColumnsToAnnotators, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, bool? strictTaskOverlap, string? taskDataLogin, string? taskDataPassword, string? title, + bool? useCustomInterface, bool configHasControlTags = default!, bool configSuitableForBulkAnnotation = default!, global::System.DateTime createdAt = default!, @@ -846,6 +904,9 @@ public LseProject( this.ControlWeights = controlWeights; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.CustomScript = customScript; this.CustomTaskLockTtl = customTaskLockTtl; this.DataTypes = dataTypes; @@ -858,6 +919,7 @@ public LseProject( this.FinishedTaskNumber = finishedTaskNumber; this.GroundTruthNumber = groundTruthNumber; this.Id = id; + this.InputSchema = inputSchema; this.IsDimensionsEnabled = isDimensionsEnabled; this.IsDraft = isDraft; this.IsPublished = isPublished; @@ -891,6 +953,8 @@ public LseProject( this.ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators; this.SkipQueue = skipQueue; this.SkippedAnnotationsNumber = skippedAnnotationsNumber; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StartTrainingOnAnnotationUpdate = startTrainingOnAnnotationUpdate; this.State = state; this.StrictTaskOverlap = strictTaskOverlap; @@ -900,6 +964,7 @@ public LseProject( this.Title = title; this.TotalAnnotationsNumber = totalAnnotationsNumber; this.TotalPredictionsNumber = totalPredictionsNumber; + this.UseCustomInterface = useCustomInterface; this.UsefulAnnotationNumber = usefulAnnotationNumber; this.Workspace = workspace; this.WorkspaceTitle = workspaceTitle; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs index 27e7f52..7838671 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs @@ -58,6 +58,24 @@ public sealed partial class LseProjectCreate [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimple? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Project Description /// @@ -105,6 +123,12 @@ public sealed partial class LseProjectCreate [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Whether or not the project is in the middle of being created /// @@ -254,6 +278,18 @@ public sealed partial class LseProjectCreate [global::System.Text.Json.Serialization.JsonPropertyName("skipped_annotations_number")] public int SkippedAnnotationsNumber { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Start model training after any annotations are submitted or updated
/// Included only in responses @@ -311,6 +347,12 @@ public sealed partial class LseProjectCreate [global::System.Text.Json.Serialization.JsonPropertyName("total_predictions_number")] public int TotalPredictionsNumber { get; set; } = default!; + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number
/// Included only in responses @@ -344,6 +386,9 @@ public sealed partial class LseProjectCreate /// /// Project owner /// + /// + /// + /// /// /// Project Description /// @@ -356,6 +401,7 @@ public sealed partial class LseProjectCreate /// /// Labeling instructions in HTML format /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -397,6 +443,8 @@ public sealed partial class LseProjectCreate /// Show a skip button in interface and allow annotators to skip the task /// /// + /// + /// /// /// Task data credentials: login /// @@ -406,6 +454,9 @@ public sealed partial class LseProjectCreate /// /// Project Title /// + /// + /// Default Value: false + /// /// /// In Workspace /// @@ -480,10 +531,14 @@ public LseProjectCreate( string? color, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimple? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? description, bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -501,9 +556,12 @@ public LseProjectCreate( bool? showOverlapFirst, bool? showSkipButton, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, string? taskDataLogin, string? taskDataPassword, string? title, + bool? useCustomInterface, int? workspace, bool configHasControlTags = default!, bool configSuitableForBulkAnnotation = default!, @@ -530,6 +588,9 @@ public LseProjectCreate( this.ControlWeights = controlWeights; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.Description = description; this.EnableEmptyAnnotation = enableEmptyAnnotation; this.EvaluatePredictionsAutomatically = evaluatePredictionsAutomatically; @@ -537,6 +598,7 @@ public LseProjectCreate( this.FinishedTaskNumber = finishedTaskNumber; this.GroundTruthNumber = groundTruthNumber; this.Id = id; + this.InputSchema = inputSchema; this.IsDraft = isDraft; this.IsPublished = isPublished; this.LabelConfig = labelConfig; @@ -559,6 +621,8 @@ public LseProjectCreate( this.ShowSkipButton = showSkipButton; this.SkipQueue = skipQueue; this.SkippedAnnotationsNumber = skippedAnnotationsNumber; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StartTrainingOnAnnotationUpdate = startTrainingOnAnnotationUpdate; this.State = state; this.TaskDataLogin = taskDataLogin; @@ -567,6 +631,7 @@ public LseProjectCreate( this.Title = title; this.TotalAnnotationsNumber = totalAnnotationsNumber; this.TotalPredictionsNumber = totalPredictionsNumber; + this.UseCustomInterface = useCustomInterface; this.UsefulAnnotationNumber = usefulAnnotationNumber; this.Workspace = workspace; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs index b1bf4f7..27278bf 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs @@ -35,6 +35,24 @@ public sealed partial class LseProjectCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimpleRequest? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Project Description /// @@ -59,6 +77,12 @@ public sealed partial class LseProjectCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("expert_instruction")] public string? ExpertInstruction { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Whether or not the project is in the middle of being created /// @@ -170,6 +194,18 @@ public sealed partial class LseProjectCreateRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.SkipQueueEnumJsonConverter))] public global::LabelStudio.SkipQueueEnum? SkipQueue { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Task data credentials: login /// @@ -188,6 +224,12 @@ public sealed partial class LseProjectCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// In Workspace /// @@ -213,6 +255,9 @@ public sealed partial class LseProjectCreateRequest /// /// Project owner /// + /// + /// + /// /// /// Project Description /// @@ -225,6 +270,7 @@ public sealed partial class LseProjectCreateRequest /// /// Labeling instructions in HTML format /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -266,6 +312,8 @@ public sealed partial class LseProjectCreateRequest /// Show a skip button in interface and allow annotators to skip the task /// /// + /// + /// /// /// Task data credentials: login /// @@ -275,6 +323,9 @@ public sealed partial class LseProjectCreateRequest /// /// Project Title /// + /// + /// Default Value: false + /// /// /// In Workspace /// @@ -286,10 +337,14 @@ public LseProjectCreateRequest( string? color, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimpleRequest? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? description, bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -307,19 +362,26 @@ public LseProjectCreateRequest( bool? showOverlapFirst, bool? showSkipButton, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, string? taskDataLogin, string? taskDataPassword, string? title, + bool? useCustomInterface, int? workspace) { this.AnnotatorEvaluationEnabled = annotatorEvaluationEnabled; this.Color = color; this.ControlWeights = controlWeights; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.Description = description; this.EnableEmptyAnnotation = enableEmptyAnnotation; this.EvaluatePredictionsAutomatically = evaluatePredictionsAutomatically; this.ExpertInstruction = expertInstruction; + this.InputSchema = inputSchema; this.IsDraft = isDraft; this.IsPublished = isPublished; this.LabelConfig = labelConfig; @@ -337,9 +399,12 @@ public LseProjectCreateRequest( this.ShowOverlapFirst = showOverlapFirst; this.ShowSkipButton = showSkipButton; this.SkipQueue = skipQueue; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.TaskDataLogin = taskDataLogin; this.TaskDataPassword = taskDataPassword; this.Title = title; + this.UseCustomInterface = useCustomInterface; this.Workspace = workspace; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs index 236d828..835fa71 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs @@ -133,6 +133,24 @@ public sealed partial class LseProjectResponse [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimple? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Plugins /// @@ -210,6 +228,12 @@ public sealed partial class LseProjectResponse [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Included only in responses /// @@ -460,6 +484,18 @@ public sealed partial class LseProjectResponse [global::System.Text.Json.Serialization.JsonPropertyName("skipped_annotations_number")] public int SkippedAnnotationsNumber { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Start model training after any annotations are submitted or updated
/// Included only in responses @@ -521,6 +557,12 @@ public sealed partial class LseProjectResponse [global::System.Text.Json.Serialization.JsonPropertyName("total_predictions_number")] public int? TotalPredictionsNumber { get; set; } + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Included only in responses /// @@ -596,6 +638,9 @@ public sealed partial class LseProjectResponse /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -621,6 +666,7 @@ public sealed partial class LseProjectResponse /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -680,6 +726,8 @@ public sealed partial class LseProjectResponse /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -696,6 +744,9 @@ public sealed partial class LseProjectResponse /// /// Included only in responses /// + /// + /// Default Value: false + /// /// /// Included only in responses /// @@ -809,6 +860,9 @@ public LseProjectResponse( string? commentClassificationConfig, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimple? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? customScript, int? customTaskLockTtl, object? dataTypes, @@ -818,6 +872,7 @@ public LseProjectResponse( bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -839,11 +894,14 @@ public LseProjectResponse( bool? showSkipButton, bool? showUnusedDataColumnsToAnnotators, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, bool? strictTaskOverlap, string? taskDataLogin, string? taskDataPassword, string? title, int? totalPredictionsNumber, + bool? useCustomInterface, int? usefulAnnotationNumber, bool allowStream = default!, bool configHasControlTags = default!, @@ -892,6 +950,9 @@ public LseProjectResponse( this.ControlWeights = controlWeights; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.CustomScript = customScript; this.CustomTaskLockTtl = customTaskLockTtl; this.DataTypes = dataTypes; @@ -904,6 +965,7 @@ public LseProjectResponse( this.FinishedTaskNumber = finishedTaskNumber; this.GroundTruthNumber = groundTruthNumber; this.Id = id; + this.InputSchema = inputSchema; this.IsDimensionsEnabled = isDimensionsEnabled; this.IsDraft = isDraft; this.IsPublished = isPublished; @@ -941,6 +1003,8 @@ public LseProjectResponse( this.ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators; this.SkipQueue = skipQueue; this.SkippedAnnotationsNumber = skippedAnnotationsNumber; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StartTrainingOnAnnotationUpdate = startTrainingOnAnnotationUpdate; this.State = state; this.StrictTaskOverlap = strictTaskOverlap; @@ -950,6 +1014,7 @@ public LseProjectResponse( this.Title = title; this.TotalAnnotationsNumber = totalAnnotationsNumber; this.TotalPredictionsNumber = totalPredictionsNumber; + this.UseCustomInterface = useCustomInterface; this.UsefulAnnotationNumber = usefulAnnotationNumber; this.Workspace = workspace; this.WorkspaceTitle = workspaceTitle; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectUpdate.g.cs index e85e626..4fb7b03 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectUpdate.g.cs @@ -127,6 +127,24 @@ public sealed partial class LseProjectUpdate [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimple? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Plugins /// @@ -186,6 +204,12 @@ public sealed partial class LseProjectUpdate [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Whether or not the project is in the middle of being created /// @@ -375,6 +399,18 @@ public sealed partial class LseProjectUpdate [global::System.Text.Json.Serialization.JsonPropertyName("skipped_annotations_number")] public int SkippedAnnotationsNumber { get; set; } = default!; + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Start model training after any annotations are submitted or updated
/// Included only in responses @@ -439,6 +475,12 @@ public sealed partial class LseProjectUpdate [global::System.Text.Json.Serialization.JsonPropertyName("total_predictions_number")] public int TotalPredictionsNumber { get; set; } = default!; + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number
/// Included only in responses @@ -519,6 +561,9 @@ public sealed partial class LseProjectUpdate /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -537,6 +582,7 @@ public sealed partial class LseProjectUpdate /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -596,6 +642,8 @@ public sealed partial class LseProjectUpdate /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -609,6 +657,9 @@ public sealed partial class LseProjectUpdate /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Flag to detect is project ready for labeling
/// Included only in responses @@ -698,12 +749,16 @@ public LseProjectUpdate( string? commentClassificationConfig, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimple? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? customScript, int? customTaskLockTtl, string? description, bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -725,10 +780,13 @@ public LseProjectUpdate( bool? showSkipButton, bool? showUnusedDataColumnsToAnnotators, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, bool? strictTaskOverlap, string? taskDataLogin, string? taskDataPassword, string? title, + bool? useCustomInterface, bool configHasControlTags = default!, bool configSuitableForBulkAnnotation = default!, global::System.DateTime createdAt = default!, @@ -766,6 +824,9 @@ public LseProjectUpdate( this.ControlWeights = controlWeights; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.CustomScript = customScript; this.CustomTaskLockTtl = customTaskLockTtl; this.Description = description; @@ -775,6 +836,7 @@ public LseProjectUpdate( this.FinishedTaskNumber = finishedTaskNumber; this.GroundTruthNumber = groundTruthNumber; this.Id = id; + this.InputSchema = inputSchema; this.IsDraft = isDraft; this.IsPublished = isPublished; this.LabelConfig = labelConfig; @@ -803,6 +865,8 @@ public LseProjectUpdate( this.ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators; this.SkipQueue = skipQueue; this.SkippedAnnotationsNumber = skippedAnnotationsNumber; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StartTrainingOnAnnotationUpdate = startTrainingOnAnnotationUpdate; this.State = state; this.StrictTaskOverlap = strictTaskOverlap; @@ -812,6 +876,7 @@ public LseProjectUpdate( this.Title = title; this.TotalAnnotationsNumber = totalAnnotationsNumber; this.TotalPredictionsNumber = totalPredictionsNumber; + this.UseCustomInterface = useCustomInterface; this.UsefulAnnotationNumber = usefulAnnotationNumber; this.Workspace = workspace; this.WorkspaceTitle = workspaceTitle; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRun.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRun.g.cs index 5c81c83..7fbd4f4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRun.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRun.g.cs @@ -24,8 +24,15 @@ public sealed partial class ModelRun /// /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] - public int? CreatedBy { get; set; } + public global::LabelStudio.UserSimple CreatedBy { get; set; } = default!; + + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters_json")] + public object? FiltersJson { get; set; } /// /// Included only in responses @@ -69,12 +76,25 @@ public sealed partial class ModelRun /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom ///
[global::System.Text.Json.Serialization.JsonPropertyName("project_subset")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ProjectSubsetEnumJsonConverter))] public global::LabelStudio.ProjectSubsetEnum? ProjectSubset { get; set; } + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sample_subset_size")] + public int? SampleSubsetSize { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_model_run")] + public int? SourceModelRun { get; set; } + /// /// Included only in responses /// @@ -83,6 +103,13 @@ public sealed partial class ModelRun [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ModelRunStatusEnumJsonConverter))] public global::LabelStudio.ModelRunStatusEnum Status { get; set; } = default!; + /// + /// List of task IDs for Custom subset re-evaluation.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("task_ids")] + public object? TaskIds { get; set; } + /// /// /// @@ -120,8 +147,8 @@ public sealed partial class ModelRun /// /// Included only in responses /// - /// - /// Included only in responses + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. /// /// /// Job ID for inference job for a ModelRun e.g. Adala job ID @@ -131,7 +158,18 @@ public sealed partial class ModelRun /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom + /// + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. + /// + /// + /// Included only in responses + /// + /// + /// List of task IDs for Custom subset re-evaluation.
+ /// Included only in responses /// /// /// @@ -142,6 +180,9 @@ public sealed partial class ModelRun /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -157,16 +198,20 @@ public sealed partial class ModelRun public ModelRun( int project, global::System.DateTime? completedAt, - int? createdBy, + object? filtersJson, string? jobId, int? organization, global::System.DateTime? predictionsUpdatedAt, global::LabelStudio.ProjectSubsetEnum? projectSubset, + int? sampleSubsetSize, + int? sourceModelRun, + object? taskIds, int? totalCorrectPredictions, int? totalPredictions, int? totalTasks, global::System.DateTime? triggeredAt, global::System.DateTime createdAt = default!, + global::LabelStudio.UserSimple createdBy = default!, int id = default!, int parentModel = default!, global::LabelStudio.ModelRunStatusEnum status = default!) @@ -174,6 +219,7 @@ public ModelRun( this.CompletedAt = completedAt; this.CreatedAt = createdAt; this.CreatedBy = createdBy; + this.FiltersJson = filtersJson; this.Id = id; this.JobId = jobId; this.Organization = organization; @@ -181,7 +227,10 @@ public ModelRun( this.PredictionsUpdatedAt = predictionsUpdatedAt; this.Project = project; this.ProjectSubset = projectSubset; + this.SampleSubsetSize = sampleSubsetSize; + this.SourceModelRun = sourceModelRun; this.Status = status; + this.TaskIds = taskIds; this.TotalCorrectPredictions = totalCorrectPredictions; this.TotalPredictions = totalPredictions; this.TotalTasks = totalTasks; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRunRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRunRequest.g.cs index cd74372..41bb993 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRunRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ModelRunRequest.g.cs @@ -8,6 +8,12 @@ namespace LabelStudio ///
public sealed partial class ModelRunRequest { + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filters_json")] + public object? FiltersJson { get; set; } + /// /// Job ID for inference job for a ModelRun e.g. Adala job ID /// @@ -44,12 +50,19 @@ public sealed partial class ModelRunRequest /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom ///
[global::System.Text.Json.Serialization.JsonPropertyName("project_subset")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ProjectSubsetEnumJsonConverter))] public global::LabelStudio.ProjectSubsetEnum? ProjectSubset { get; set; } + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sample_subset_size")] + public int? SampleSubsetSize { get; set; } + /// /// /// @@ -78,6 +91,9 @@ public sealed partial class ModelRunRequest /// Initializes a new instance of the class. ///
/// + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. + /// /// /// Job ID for inference job for a ModelRun e.g. Adala job ID /// @@ -91,7 +107,11 @@ public sealed partial class ModelRunRequest /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom + /// + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. /// /// /// @@ -101,21 +121,25 @@ public sealed partial class ModelRunRequest #endif public ModelRunRequest( int project, + object? filtersJson, string? jobId, bool? onlyMissingPredictions, int? organization, global::System.DateTime? predictionsUpdatedAt, global::LabelStudio.ProjectSubsetEnum? projectSubset, + int? sampleSubsetSize, int? totalCorrectPredictions, int? totalPredictions, int? totalTasks) { + this.FiltersJson = filtersJson; this.JobId = jobId; this.OnlyMissingPredictions = onlyMissingPredictions; this.Organization = organization; this.PredictionsUpdatedAt = predictionsUpdatedAt; this.Project = project; this.ProjectSubset = projectSubset; + this.SampleSubsetSize = sampleSubsetSize; this.TotalCorrectPredictions = totalCorrectPredictions; this.TotalPredictions = totalPredictions; this.TotalTasks = totalTasks; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.Json.g.cs new file mode 100644 index 0000000..54eaeb3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PaginatedLseInterfaceList + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PaginatedLseInterfaceList? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PaginatedLseInterfaceList), + jsonSerializerContext) as global::LabelStudio.PaginatedLseInterfaceList; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PaginatedLseInterfaceList? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PaginatedLseInterfaceList), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PaginatedLseInterfaceList; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.g.cs new file mode 100644 index 0000000..8d08dfe --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PaginatedLseInterfaceList.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PaginatedLseInterfaceList + { + /// + /// Example: 123 + /// + /// 123 + [global::System.Text.Json.Serialization.JsonPropertyName("count")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Count { get; set; } + + /// + /// Example: http://api.example.org/accounts/?page=4 + /// + /// http://api.example.org/accounts/?page=4 + [global::System.Text.Json.Serialization.JsonPropertyName("next")] + public string? Next { get; set; } + + /// + /// Example: http://api.example.org/accounts/?page=2 + /// + /// http://api.example.org/accounts/?page=2 + [global::System.Text.Json.Serialization.JsonPropertyName("previous")] + public string? Previous { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("results")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Results { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Example: 123 + /// + /// + /// + /// Example: http://api.example.org/accounts/?page=4 + /// + /// + /// Example: http://api.example.org/accounts/?page=2 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PaginatedLseInterfaceList( + int count, + global::System.Collections.Generic.IList results, + string? next, + string? previous) + { + this.Count = count; + this.Next = next; + this.Previous = previous; + this.Results = results ?? throw new global::System.ArgumentNullException(nameof(results)); + } + + /// + /// Initializes a new instance of the class. + /// + public PaginatedLseInterfaceList() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.Json.g.cs new file mode 100644 index 0000000..830446c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedFewShotExampleRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedFewShotExampleRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedFewShotExampleRequest), + jsonSerializerContext) as global::LabelStudio.PatchedFewShotExampleRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedFewShotExampleRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedFewShotExampleRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedFewShotExampleRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.g.cs new file mode 100644 index 0000000..bcb9595 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedFewShotExampleRequest.g.cs @@ -0,0 +1,61 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PatchedFewShotExampleRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("annotation")] + public int? Annotation { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("order")] + public int? Order { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task")] + public int? Task { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchedFewShotExampleRequest( + int? annotation, + int? order, + int? task) + { + this.Annotation = annotation; + this.Order = order; + this.Task = task; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchedFewShotExampleRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.Json.g.cs new file mode 100644 index 0000000..481abad --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequest), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.g.cs new file mode 100644 index 0000000..6c76a7d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequest.g.cs @@ -0,0 +1,147 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class PatchedLseInterfaceRequest + { + /// + /// AI-produced code snapshots for session continuity + /// + [global::System.Text.Json.Serialization.JsonPropertyName("artifacts")] + public object? Artifacts { get; set; } + + /// + /// JSX source code for the interface screen module + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("compiled")] + public string? Compiled { get; set; } + + /// + /// Sample task data for preview + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data_sample")] + public object? DataSample { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// JSON Schema declaring expected task data field types for import validation + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + + /// + /// Chat conversation history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("messages")] + public object? Messages { get; set; } + + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_schema")] + public object? OutputSchema { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// Code version history + /// + [global::System.Text.Json.Serialization.JsonPropertyName("versions")] + public object? Versions { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + public int? Workspace { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// AI-produced code snapshots for session continuity + /// + /// + /// JSX source code for the interface screen module + /// + /// + /// + /// Sample task data for preview + /// + /// + /// + /// JSON Schema declaring expected task data field types for import validation + /// + /// + /// Chat conversation history + /// + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + /// + /// + /// Code version history + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchedLseInterfaceRequest( + object? artifacts, + string? code, + string? compiled, + object? dataSample, + string? description, + object? inputSchema, + object? messages, + object? outputSchema, + string? title, + object? versions, + int? workspace) + { + this.Artifacts = artifacts; + this.Code = code; + this.Compiled = compiled; + this.DataSample = dataSample; + this.Description = description; + this.InputSchema = inputSchema; + this.Messages = messages; + this.OutputSchema = outputSchema; + this.Title = title; + this.Versions = versions; + this.Workspace = workspace; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchedLseInterfaceRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.Json.g.cs new file mode 100644 index 0000000..25d37d7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestArtifacts + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestArtifacts? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestArtifacts), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestArtifacts; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestArtifacts? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestArtifacts), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestArtifacts; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.g.cs new file mode 100644 index 0000000..fb591fe --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestArtifacts.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// AI-produced code snapshots for session continuity + /// + public sealed partial class PatchedLseInterfaceRequestArtifacts + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.Json.g.cs new file mode 100644 index 0000000..2475f63 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestDataSample + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestDataSample? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestDataSample), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestDataSample; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestDataSample? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestDataSample), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestDataSample; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.g.cs new file mode 100644 index 0000000..762ed8c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestDataSample.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Sample task data for preview + /// + public sealed partial class PatchedLseInterfaceRequestDataSample + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.Json.g.cs new file mode 100644 index 0000000..9de28a3 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestInputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestInputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestInputSchema), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestInputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestInputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestInputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestInputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.g.cs new file mode 100644 index 0000000..76f2687 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestInputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring expected task data field types for import validation + /// + public sealed partial class PatchedLseInterfaceRequestInputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.Json.g.cs new file mode 100644 index 0000000..eb587cf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestMessages + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestMessages? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestMessages), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestMessages; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestMessages? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestMessages), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestMessages; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.g.cs new file mode 100644 index 0000000..9d091a7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestMessages.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Chat conversation history + /// + public sealed partial class PatchedLseInterfaceRequestMessages + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.Json.g.cs new file mode 100644 index 0000000..09686c9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestOutputSchema + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestOutputSchema? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestOutputSchema), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestOutputSchema; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestOutputSchema? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestOutputSchema), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestOutputSchema; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.g.cs new file mode 100644 index 0000000..03723e9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestOutputSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + /// + public sealed partial class PatchedLseInterfaceRequestOutputSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.Json.g.cs new file mode 100644 index 0000000..bda6a22 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class PatchedLseInterfaceRequestVersions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.PatchedLseInterfaceRequestVersions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.PatchedLseInterfaceRequestVersions), + jsonSerializerContext) as global::LabelStudio.PatchedLseInterfaceRequestVersions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.PatchedLseInterfaceRequestVersions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.PatchedLseInterfaceRequestVersions), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.PatchedLseInterfaceRequestVersions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.g.cs new file mode 100644 index 0000000..adf3a26 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseInterfaceRequestVersions.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Code version history + /// + public sealed partial class PatchedLseInterfaceRequestVersions + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs index 7680cc8..7f95959 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs @@ -103,6 +103,24 @@ public sealed partial class PatchedLseProjectUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("created_by")] public global::LabelStudio.UserSimpleRequest? CreatedBy { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_code")] + public string? CustomInterfaceCode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_compiled")] + public string? CustomInterfaceCompiled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_interface_params")] + public object? CustomInterfaceParams { get; set; } + /// /// Plugins /// @@ -139,6 +157,12 @@ public sealed partial class PatchedLseProjectUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("expert_instruction")] public string? ExpertInstruction { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input_schema")] + public object? InputSchema { get; set; } + /// /// Whether or not the project is in the middle of being created /// @@ -282,6 +306,18 @@ public sealed partial class PatchedLseProjectUpdateRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.SkipQueueEnumJsonConverter))] public global::LabelStudio.SkipQueueEnum? SkipQueue { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_id")] + public int? SourceInterfaceId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_interface_version")] + public int? SourceInterfaceVersion { get; set; } + /// /// Enforce strict overlap limit
/// Default Value: true @@ -307,6 +343,12 @@ public sealed partial class PatchedLseProjectUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } + /// + /// Default Value: false + /// + [global::System.Text.Json.Serialization.JsonPropertyName("use_custom_interface")] + public bool? UseCustomInterface { get; set; } + /// /// Workspace /// @@ -367,6 +409,9 @@ public sealed partial class PatchedLseProjectUpdateRequest /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -385,6 +430,7 @@ public sealed partial class PatchedLseProjectUpdateRequest /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -445,6 +491,8 @@ public sealed partial class PatchedLseProjectUpdateRequest /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -458,6 +506,9 @@ public sealed partial class PatchedLseProjectUpdateRequest /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Workspace /// @@ -479,12 +530,16 @@ public PatchedLseProjectUpdateRequest( string? commentClassificationConfig, global::System.Collections.Generic.Dictionary? controlWeights, global::LabelStudio.UserSimpleRequest? createdBy, + string? customInterfaceCode, + string? customInterfaceCompiled, + object? customInterfaceParams, string? customScript, int? customTaskLockTtl, string? description, bool? enableEmptyAnnotation, bool? evaluatePredictionsAutomatically, string? expertInstruction, + object? inputSchema, bool? isDraft, bool? isPublished, string? labelConfig, @@ -507,10 +562,13 @@ public PatchedLseProjectUpdateRequest( bool? showSkipButton, bool? showUnusedDataColumnsToAnnotators, global::LabelStudio.SkipQueueEnum? skipQueue, + int? sourceInterfaceId, + int? sourceInterfaceVersion, bool? strictTaskOverlap, string? taskDataLogin, string? taskDataPassword, string? title, + bool? useCustomInterface, int? workspace) { this.AgreementMethodology = agreementMethodology; @@ -527,12 +585,16 @@ public PatchedLseProjectUpdateRequest( this.CommentClassificationConfig = commentClassificationConfig; this.ControlWeights = controlWeights; this.CreatedBy = createdBy; + this.CustomInterfaceCode = customInterfaceCode; + this.CustomInterfaceCompiled = customInterfaceCompiled; + this.CustomInterfaceParams = customInterfaceParams; this.CustomScript = customScript; this.CustomTaskLockTtl = customTaskLockTtl; this.Description = description; this.EnableEmptyAnnotation = enableEmptyAnnotation; this.EvaluatePredictionsAutomatically = evaluatePredictionsAutomatically; this.ExpertInstruction = expertInstruction; + this.InputSchema = inputSchema; this.IsDraft = isDraft; this.IsPublished = isPublished; this.LabelConfig = labelConfig; @@ -555,10 +617,13 @@ public PatchedLseProjectUpdateRequest( this.ShowSkipButton = showSkipButton; this.ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators; this.SkipQueue = skipQueue; + this.SourceInterfaceId = sourceInterfaceId; + this.SourceInterfaceVersion = sourceInterfaceVersion; this.StrictTaskOverlap = strictTaskOverlap; this.TaskDataLogin = taskDataLogin; this.TaskDataPassword = taskDataPassword; this.Title = title; + this.UseCustomInterface = useCustomInterface; this.Workspace = workspace; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedThirdPartyModelVersionRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedThirdPartyModelVersionRequest.g.cs index e302ae0..cbf37a1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedThirdPartyModelVersionRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedThirdPartyModelVersionRequest.g.cs @@ -8,6 +8,12 @@ namespace LabelStudio ///
public sealed partial class PatchedThirdPartyModelVersionRequest { + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_few_shot_examples")] + public int? MaxFewShotExamples { get; set; } + /// /// /// @@ -67,6 +73,9 @@ public sealed partial class PatchedThirdPartyModelVersionRequest /// /// Initializes a new instance of the class. /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -95,6 +104,7 @@ public sealed partial class PatchedThirdPartyModelVersionRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PatchedThirdPartyModelVersionRequest( + int? maxFewShotExamples, int? modelProviderConnection, int? organization, int? parentModel, @@ -103,6 +113,7 @@ public PatchedThirdPartyModelVersionRequest( string? providerModelId, string? title) { + this.MaxFewShotExamples = maxFewShotExamples; this.ModelProviderConnection = modelProviderConnection; this.Organization = organization; this.ParentModel = parentModel; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModeEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateModeEnum.g.cs similarity index 63% rename from src/libs/LabelStudio/Generated/LabelStudio.Models.ModeEnum.g.cs rename to src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateModeEnum.g.cs index c76d65a..da7eea2 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ModeEnum.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateModeEnum.g.cs @@ -7,7 +7,7 @@ namespace LabelStudio /// * `settings` - Only settings
/// * `settings,data` - Settings and tasks ///
- public enum ModeEnum + public enum ProjectDuplicateModeEnum { /// /// @@ -22,29 +22,29 @@ public enum ModeEnum /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ModeEnumExtensions + public static class ProjectDuplicateModeEnumExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ModeEnum value) + public static string ToValueString(this ProjectDuplicateModeEnum value) { return value switch { - ModeEnum.Settings => "settings", - ModeEnum.Settings_data => "settings,data", + ProjectDuplicateModeEnum.Settings => "settings", + ProjectDuplicateModeEnum.Settings_data => "settings,data", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ModeEnum? ToEnum(string value) + public static ProjectDuplicateModeEnum? ToEnum(string value) { return value switch { - "settings" => ModeEnum.Settings, - "settings,data" => ModeEnum.Settings_data, + "settings" => ProjectDuplicateModeEnum.Settings, + "settings,data" => ProjectDuplicateModeEnum.Settings_data, _ => null, }; } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateRequest.g.cs index 10b9890..caabba1 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectDuplicateRequest.g.cs @@ -20,9 +20,9 @@ public sealed partial class ProjectDuplicateRequest /// * `settings,data` - Settings and tasks /// [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ModeEnumJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ProjectDuplicateModeEnumJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::LabelStudio.ModeEnum Mode { get; set; } + public required global::LabelStudio.ProjectDuplicateModeEnum Mode { get; set; } /// /// Project Name @@ -65,7 +65,7 @@ public sealed partial class ProjectDuplicateRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ProjectDuplicateRequest( - global::LabelStudio.ModeEnum mode, + global::LabelStudio.ProjectDuplicateModeEnum mode, string title, int workspace, string? description) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectSubsetEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectSubsetEnum.g.cs index 2e2d647..0a3d920 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectSubsetEnum.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ProjectSubsetEnum.g.cs @@ -6,7 +6,8 @@ namespace LabelStudio /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom ///
public enum ProjectSubsetEnum { @@ -17,6 +18,10 @@ public enum ProjectSubsetEnum /// /// /// + Custom, + /// + /// + /// HasGT, /// /// @@ -37,6 +42,7 @@ public static string ToValueString(this ProjectSubsetEnum value) return value switch { ProjectSubsetEnum.All => "All", + ProjectSubsetEnum.Custom => "Custom", ProjectSubsetEnum.HasGT => "HasGT", ProjectSubsetEnum.Sample => "Sample", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -50,6 +56,7 @@ public static string ToValueString(this ProjectSubsetEnum value) return value switch { "All" => ProjectSubsetEnum.All, + "Custom" => ProjectSubsetEnum.Custom, "HasGT" => ProjectSubsetEnum.HasGT, "Sample" => ProjectSubsetEnum.Sample, _ => null, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.Json.g.cs new file mode 100644 index 0000000..b7c04cf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ReEvaluate + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ReEvaluate? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ReEvaluate), + jsonSerializerContext) as global::LabelStudio.ReEvaluate; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ReEvaluate? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ReEvaluate), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ReEvaluate; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.g.cs new file mode 100644 index 0000000..5e90147 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluate.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ReEvaluate + { + /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ReEvaluateModeEnumJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LabelStudio.ReEvaluateModeEnum Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ModelVersionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("run_b_id")] + public int? RunBId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_model_run_id")] + public int? SourceModelRunId { get; set; } + + /// + /// Default Value: [] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task_ids")] + public global::System.Collections.Generic.IList? TaskIds { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + /// + /// + /// + /// + /// + /// Default Value: [] + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ReEvaluate( + global::LabelStudio.ReEvaluateModeEnum mode, + int modelVersionId, + int? runBId, + int? sourceModelRunId, + global::System.Collections.Generic.IList? taskIds) + { + this.Mode = mode; + this.ModelVersionId = modelVersionId; + this.RunBId = runBId; + this.SourceModelRunId = sourceModelRunId; + this.TaskIds = taskIds; + } + + /// + /// Initializes a new instance of the class. + /// + public ReEvaluate() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateModeEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateModeEnum.g.cs new file mode 100644 index 0000000..85f53d1 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateModeEnum.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + ///
+ public enum ReEvaluateModeEnum + { + /// + /// + /// + Custom, + /// + /// + /// + Failed, + /// + /// + /// + Incorrect, + /// + /// + /// + Regressions, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ReEvaluateModeEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ReEvaluateModeEnum value) + { + return value switch + { + ReEvaluateModeEnum.Custom => "custom", + ReEvaluateModeEnum.Failed => "failed", + ReEvaluateModeEnum.Incorrect => "incorrect", + ReEvaluateModeEnum.Regressions => "regressions", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ReEvaluateModeEnum? ToEnum(string value) + { + return value switch + { + "custom" => ReEvaluateModeEnum.Custom, + "failed" => ReEvaluateModeEnum.Failed, + "incorrect" => ReEvaluateModeEnum.Incorrect, + "regressions" => ReEvaluateModeEnum.Regressions, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.Json.g.cs new file mode 100644 index 0000000..1088411 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ReEvaluateRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ReEvaluateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ReEvaluateRequest), + jsonSerializerContext) as global::LabelStudio.ReEvaluateRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::LabelStudio.ReEvaluateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::LabelStudio.ReEvaluateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ReEvaluateRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.g.cs new file mode 100644 index 0000000..fb71661 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ReEvaluateRequest.g.cs @@ -0,0 +1,92 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ReEvaluateRequest + { + /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.ReEvaluateModeEnumJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LabelStudio.ReEvaluateModeEnum Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model_version_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int ModelVersionId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("run_b_id")] + public int? RunBId { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source_model_run_id")] + public int? SourceModelRunId { get; set; } + + /// + /// Default Value: [] + /// + [global::System.Text.Json.Serialization.JsonPropertyName("task_ids")] + public global::System.Collections.Generic.IList? TaskIds { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + /// + /// + /// + /// + /// + /// Default Value: [] + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ReEvaluateRequest( + global::LabelStudio.ReEvaluateModeEnum mode, + int modelVersionId, + int? runBId, + int? sourceModelRunId, + global::System.Collections.Generic.IList? taskIds) + { + this.Mode = mode; + this.ModelVersionId = modelVersionId; + this.RunBId = runBId; + this.SourceModelRunId = sourceModelRunId; + this.TaskIds = taskIds; + } + + /// + /// Initializes a new instance of the class. + /// + public ReEvaluateRequest() + { + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersion.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersion.g.cs index 355aac1..2fc0cc4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersion.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersion.g.cs @@ -30,6 +30,19 @@ public sealed partial class ThirdPartyModelVersion [global::System.Text.Json.Serialization.JsonPropertyName("id")] public int Id { get; set; } = default!; + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_few_shot_examples")] + public int? MaxFewShotExamples { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("model_display_name")] + public string ModelDisplayName { get; set; } = default!; + /// /// /// @@ -115,6 +128,9 @@ public sealed partial class ThirdPartyModelVersion /// /// Model name /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -140,6 +156,9 @@ public sealed partial class ThirdPartyModelVersion /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// Included only in responses /// @@ -153,6 +172,7 @@ public ThirdPartyModelVersion( string prompt, string providerModelId, string title, + int? maxFewShotExamples, int? modelProviderConnection, int? organization, int? parentModel, @@ -160,12 +180,15 @@ public ThirdPartyModelVersion( global::System.DateTime createdAt = default!, global::LabelStudio.UserSimple createdBy = default!, int id = default!, + string modelDisplayName = default!, string score = default!, global::System.DateTime updatedAt = default!) { this.CreatedAt = createdAt; this.CreatedBy = createdBy; this.Id = id; + this.MaxFewShotExamples = maxFewShotExamples; + this.ModelDisplayName = modelDisplayName; this.ModelProviderConnection = modelProviderConnection; this.Organization = organization; this.ParentModel = parentModel; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersionRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersionRequest.g.cs index e151992..fb833fa 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersionRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ThirdPartyModelVersionRequest.g.cs @@ -8,6 +8,12 @@ namespace LabelStudio ///
public sealed partial class ThirdPartyModelVersionRequest { + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("max_few_shot_examples")] + public int? MaxFewShotExamples { get; set; } + /// /// /// @@ -79,6 +85,9 @@ public sealed partial class ThirdPartyModelVersionRequest /// /// Model name /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -101,11 +110,13 @@ public ThirdPartyModelVersionRequest( string prompt, string providerModelId, string title, + int? maxFewShotExamples, int? modelProviderConnection, int? organization, int? parentModel, global::LabelStudio.ProviderEnum? provider) { + this.MaxFewShotExamples = maxFewShotExamples; this.ModelProviderConnection = modelProviderConnection; this.Organization = organization; this.ParentModel = parentModel; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs index 2998eae..f25bc68 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs @@ -403,6 +403,9 @@ partial void ProcessCreateResponseContent( /// /// Project owner /// + /// + /// + /// /// /// Project Description /// @@ -415,6 +418,7 @@ partial void ProcessCreateResponseContent( /// /// Labeling instructions in HTML format /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -456,6 +460,8 @@ partial void ProcessCreateResponseContent( /// Show a skip button in interface and allow annotators to skip the task /// /// + /// + /// /// /// Task data credentials: login /// @@ -465,6 +471,9 @@ partial void ProcessCreateResponseContent( /// /// Project Title /// + /// + /// Default Value: false + /// /// /// In Workspace /// @@ -476,10 +485,14 @@ partial void ProcessCreateResponseContent( string? color = default, global::System.Collections.Generic.Dictionary? controlWeights = default, global::LabelStudio.UserSimpleRequest? createdBy = default, + string? customInterfaceCode = default, + string? customInterfaceCompiled = default, + object? customInterfaceParams = default, string? description = default, bool? enableEmptyAnnotation = default, bool? evaluatePredictionsAutomatically = default, string? expertInstruction = default, + object? inputSchema = default, bool? isDraft = default, bool? isPublished = default, string? labelConfig = default, @@ -497,9 +510,12 @@ partial void ProcessCreateResponseContent( bool? showOverlapFirst = default, bool? showSkipButton = default, global::LabelStudio.SkipQueueEnum? skipQueue = default, + int? sourceInterfaceId = default, + int? sourceInterfaceVersion = default, string? taskDataLogin = default, string? taskDataPassword = default, string? title = default, + bool? useCustomInterface = default, int? workspace = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -510,10 +526,14 @@ partial void ProcessCreateResponseContent( Color = color, ControlWeights = controlWeights, CreatedBy = createdBy, + CustomInterfaceCode = customInterfaceCode, + CustomInterfaceCompiled = customInterfaceCompiled, + CustomInterfaceParams = customInterfaceParams, Description = description, EnableEmptyAnnotation = enableEmptyAnnotation, EvaluatePredictionsAutomatically = evaluatePredictionsAutomatically, ExpertInstruction = expertInstruction, + InputSchema = inputSchema, IsDraft = isDraft, IsPublished = isPublished, LabelConfig = labelConfig, @@ -531,9 +551,12 @@ partial void ProcessCreateResponseContent( ShowOverlapFirst = showOverlapFirst, ShowSkipButton = showSkipButton, SkipQueue = skipQueue, + SourceInterfaceId = sourceInterfaceId, + SourceInterfaceVersion = sourceInterfaceVersion, TaskDataLogin = taskDataLogin, TaskDataPassword = taskDataPassword, Title = title, + UseCustomInterface = useCustomInterface, Workspace = workspace, }; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs index 6e892a0..e1e22bd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Duplicate.g.cs @@ -429,7 +429,7 @@ partial void ProcessDuplicateResponseContent( /// public async global::System.Threading.Tasks.Task DuplicateAsync( int id, - global::LabelStudio.ModeEnum mode, + global::LabelStudio.ProjectDuplicateModeEnum mode, string title, int workspace, string? description = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs index 84e10a7..90a211e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs @@ -459,6 +459,9 @@ partial void ProcessUpdateResponseContent( /// /// Project owner /// + /// + /// + /// /// /// Plugins /// @@ -477,6 +480,7 @@ partial void ProcessUpdateResponseContent( /// /// Instructions /// + /// /// /// Whether or not the project is in the middle of being created /// @@ -537,6 +541,8 @@ partial void ProcessUpdateResponseContent( /// Show only columns used in labeling configuration to Annotators. API uses inverse field semantics here: set false to show only used columns, set true to show all task.data columns. /// /// + /// + /// /// /// Enforce strict overlap limit
/// Default Value: true @@ -550,6 +556,9 @@ partial void ProcessUpdateResponseContent( /// /// Project Name /// + /// + /// Default Value: false + /// /// /// Workspace /// @@ -573,12 +582,16 @@ partial void ProcessUpdateResponseContent( string? commentClassificationConfig = default, global::System.Collections.Generic.Dictionary? controlWeights = default, global::LabelStudio.UserSimpleRequest? createdBy = default, + string? customInterfaceCode = default, + string? customInterfaceCompiled = default, + object? customInterfaceParams = default, string? customScript = default, int? customTaskLockTtl = default, string? description = default, bool? enableEmptyAnnotation = default, bool? evaluatePredictionsAutomatically = default, string? expertInstruction = default, + object? inputSchema = default, bool? isDraft = default, bool? isPublished = default, string? labelConfig = default, @@ -601,10 +614,13 @@ partial void ProcessUpdateResponseContent( bool? showSkipButton = default, bool? showUnusedDataColumnsToAnnotators = default, global::LabelStudio.SkipQueueEnum? skipQueue = default, + int? sourceInterfaceId = default, + int? sourceInterfaceVersion = default, bool? strictTaskOverlap = default, string? taskDataLogin = default, string? taskDataPassword = default, string? title = default, + bool? useCustomInterface = default, int? workspace = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -625,12 +641,16 @@ partial void ProcessUpdateResponseContent( CommentClassificationConfig = commentClassificationConfig, ControlWeights = controlWeights, CreatedBy = createdBy, + CustomInterfaceCode = customInterfaceCode, + CustomInterfaceCompiled = customInterfaceCompiled, + CustomInterfaceParams = customInterfaceParams, CustomScript = customScript, CustomTaskLockTtl = customTaskLockTtl, Description = description, EnableEmptyAnnotation = enableEmptyAnnotation, EvaluatePredictionsAutomatically = evaluatePredictionsAutomatically, ExpertInstruction = expertInstruction, + InputSchema = inputSchema, IsDraft = isDraft, IsPublished = isPublished, LabelConfig = labelConfig, @@ -653,10 +673,13 @@ partial void ProcessUpdateResponseContent( ShowSkipButton = showSkipButton, ShowUnusedDataColumnsToAnnotators = showUnusedDataColumnsToAnnotators, SkipQueue = skipQueue, + SourceInterfaceId = sourceInterfaceId, + SourceInterfaceVersion = sourceInterfaceVersion, StrictTaskOverlap = strictTaskOverlap, TaskDataLogin = taskDataLogin, TaskDataPassword = taskDataPassword, Title = title, + UseCustomInterface = useCustomInterface, Workspace = workspace, }; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs new file mode 100644 index 0000000..a1c1226 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsBulkIndicatorsRetrieve.g.cs @@ -0,0 +1,357 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInferenceRunsBulkIndicatorsRetrieveSecurityRequirement0 = + 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_ApiInferenceRunsBulkIndicatorsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInferenceRunsBulkIndicatorsRetrieveSecurityRequirement0, + }; + partial void PrepareApiInferenceRunsBulkIndicatorsRetrieveArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareApiInferenceRunsBulkIndicatorsRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessApiInferenceRunsBulkIndicatorsRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Bulk fetch indicators for inference runs
+ /// Bulk fetch default indicators for multiple inference runs at once.
+ /// Returns aggregated metrics for up to 20 completed runs in a single request,
+ /// used by the Comparison Matrix to show all versions side by side. + ///
+ /// 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 ApiInferenceRunsBulkIndicatorsRetrieveAsync( + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiInferenceRunsBulkIndicatorsRetrieveArguments( + httpClient: HttpClient); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInferenceRunsBulkIndicatorsRetrieveSecurityRequirements, + operationName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync"); + + 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/inference-runs/bulk-indicators/", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiInferenceRunsBulkIndicatorsRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "ApiInferenceRunsBulkIndicatorsRetrieve", + methodName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/bulk-indicators/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsBulkIndicatorsRetrieve", + methodName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/bulk-indicators/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsBulkIndicatorsRetrieve", + methodName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/bulk-indicators/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInferenceRunsBulkIndicatorsRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsBulkIndicatorsRetrieve", + methodName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/bulk-indicators/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsBulkIndicatorsRetrieve", + methodName: "ApiInferenceRunsBulkIndicatorsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/bulk-indicators/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs new file mode 100644 index 0000000..c926ec9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsReEvaluateCreate.g.cs @@ -0,0 +1,443 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInferenceRunsReEvaluateCreateSecurityRequirement0 = + 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_ApiInferenceRunsReEvaluateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInferenceRunsReEvaluateCreateSecurityRequirement0, + }; + partial void PrepareApiInferenceRunsReEvaluateCreateArguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.ReEvaluateRequest request); + partial void PrepareApiInferenceRunsReEvaluateCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.ReEvaluateRequest request); + partial void ProcessApiInferenceRunsReEvaluateCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiInferenceRunsReEvaluateCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Re-evaluate specific tasks from a previous run
+ /// Create a new inference run targeting only specific tasks (re-evaluation).
+ /// Supports four modes:
+ /// - custom: provide explicit task_ids
+ /// - failed: re-run tasks with failed predictions from a source run
+ /// - incorrect: re-run tasks with score < 1.0 from a source run
+ /// - regressions: re-run tasks that regressed between two runs + ///
+ /// + /// 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 ApiInferenceRunsReEvaluateCreateAsync( + + global::LabelStudio.ReEvaluateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiInferenceRunsReEvaluateCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInferenceRunsReEvaluateCreateSecurityRequirements, + operationName: "ApiInferenceRunsReEvaluateCreateAsync"); + + 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/inference-runs/re-evaluate/", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiInferenceRunsReEvaluateCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + 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: "ApiInferenceRunsReEvaluateCreate", + methodName: "ApiInferenceRunsReEvaluateCreateAsync", + pathTemplate: "\"/api/inference-runs/re-evaluate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsReEvaluateCreate", + methodName: "ApiInferenceRunsReEvaluateCreateAsync", + pathTemplate: "\"/api/inference-runs/re-evaluate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsReEvaluateCreate", + methodName: "ApiInferenceRunsReEvaluateCreateAsync", + pathTemplate: "\"/api/inference-runs/re-evaluate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInferenceRunsReEvaluateCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsReEvaluateCreate", + methodName: "ApiInferenceRunsReEvaluateCreateAsync", + pathTemplate: "\"/api/inference-runs/re-evaluate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsReEvaluateCreate", + methodName: "ApiInferenceRunsReEvaluateCreateAsync", + pathTemplate: "\"/api/inference-runs/re-evaluate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiInferenceRunsReEvaluateCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.ReEvaluate.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.ReEvaluate.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Re-evaluate specific tasks from a previous run
+ /// Create a new inference run targeting only specific tasks (re-evaluation).
+ /// Supports four modes:
+ /// - custom: provide explicit task_ids
+ /// - failed: re-run tasks with failed predictions from a source run
+ /// - incorrect: re-run tasks with score < 1.0 from a source run
+ /// - regressions: re-run tasks that regressed between two runs + ///
+ /// + /// * `failed` - failed
+ /// * `incorrect` - incorrect
+ /// * `regressions` - regressions
+ /// * `custom` - custom + /// + /// + /// + /// + /// + /// Default Value: [] + /// + /// 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 ApiInferenceRunsReEvaluateCreateAsync( + global::LabelStudio.ReEvaluateModeEnum mode, + int modelVersionId, + int? runBId = default, + int? sourceModelRunId = default, + global::System.Collections.Generic.IList? taskIds = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.ReEvaluateRequest + { + Mode = mode, + ModelVersionId = modelVersionId, + RunBId = runBId, + SourceModelRunId = sourceModelRunId, + TaskIds = taskIds, + }; + + return await ApiInferenceRunsReEvaluateCreateAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs new file mode 100644 index 0000000..07f81f7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiInferenceRunsRegressionsRetrieve.g.cs @@ -0,0 +1,357 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiInferenceRunsRegressionsRetrieveSecurityRequirement0 = + 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_ApiInferenceRunsRegressionsRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiInferenceRunsRegressionsRetrieveSecurityRequirement0, + }; + partial void PrepareApiInferenceRunsRegressionsRetrieveArguments( + global::System.Net.Http.HttpClient httpClient); + partial void PrepareApiInferenceRunsRegressionsRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage); + partial void ProcessApiInferenceRunsRegressionsRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Compare correctness transitions between inference runs
+ /// Compare correctness transitions between two inference runs.
+ /// Classifies each task as regression, improvement, stable_correct,
+ /// stable_incorrect, new, or removed based on prediction scores. + ///
+ /// 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 ApiInferenceRunsRegressionsRetrieveAsync( + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiInferenceRunsRegressionsRetrieveArguments( + httpClient: HttpClient); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiInferenceRunsRegressionsRetrieveSecurityRequirements, + operationName: "ApiInferenceRunsRegressionsRetrieveAsync"); + + 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/inference-runs/regressions/", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiInferenceRunsRegressionsRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest); + + 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: "ApiInferenceRunsRegressionsRetrieve", + methodName: "ApiInferenceRunsRegressionsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/regressions/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsRegressionsRetrieve", + methodName: "ApiInferenceRunsRegressionsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/regressions/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsRegressionsRetrieve", + methodName: "ApiInferenceRunsRegressionsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/regressions/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiInferenceRunsRegressionsRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsRegressionsRetrieve", + methodName: "ApiInferenceRunsRegressionsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/regressions/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiInferenceRunsRegressionsRetrieve", + methodName: "ApiInferenceRunsRegressionsRetrieveAsync", + pathTemplate: "\"/api/inference-runs/regressions/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs new file mode 100644 index 0000000..c8da8c6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiProjectsAnnotationsBrowseRetrieve.g.cs @@ -0,0 +1,361 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiProjectsAnnotationsBrowseRetrieveSecurityRequirement0 = + 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_ApiProjectsAnnotationsBrowseRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiProjectsAnnotationsBrowseRetrieveSecurityRequirement0, + }; + partial void PrepareApiProjectsAnnotationsBrowseRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref int projectPk); + partial void PrepareApiProjectsAnnotationsBrowseRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int projectPk); + partial void ProcessApiProjectsAnnotationsBrowseRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Browse annotations for few-shot examples
+ /// Lightweight annotations list for few-shot example browser. + ///
+ /// + /// 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 ApiProjectsAnnotationsBrowseRetrieveAsync( + int projectPk, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiProjectsAnnotationsBrowseRetrieveArguments( + httpClient: HttpClient, + projectPk: ref projectPk); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiProjectsAnnotationsBrowseRetrieveSecurityRequirements, + operationName: "ApiProjectsAnnotationsBrowseRetrieveAsync"); + + 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/projects/{projectPk}/annotations-browse", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiProjectsAnnotationsBrowseRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + projectPk: projectPk); + + 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: "ApiProjectsAnnotationsBrowseRetrieve", + methodName: "ApiProjectsAnnotationsBrowseRetrieveAsync", + pathTemplate: "$\"/api/projects/{projectPk}/annotations-browse\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiProjectsAnnotationsBrowseRetrieve", + methodName: "ApiProjectsAnnotationsBrowseRetrieveAsync", + pathTemplate: "$\"/api/projects/{projectPk}/annotations-browse\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiProjectsAnnotationsBrowseRetrieve", + methodName: "ApiProjectsAnnotationsBrowseRetrieveAsync", + pathTemplate: "$\"/api/projects/{projectPk}/annotations-browse\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiProjectsAnnotationsBrowseRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiProjectsAnnotationsBrowseRetrieve", + methodName: "ApiProjectsAnnotationsBrowseRetrieveAsync", + pathTemplate: "$\"/api/projects/{projectPk}/annotations-browse\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiProjectsAnnotationsBrowseRetrieve", + methodName: "ApiProjectsAnnotationsBrowseRetrieveAsync", + pathTemplate: "$\"/api/projects/{projectPk}/annotations-browse\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsDuplicateCreate.g.cs new file mode 100644 index 0000000..085a5ef --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsDuplicateCreate.g.cs @@ -0,0 +1,450 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsDuplicateCreateSecurityRequirement0 = + 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_ApiPromptsDuplicateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsDuplicateCreateSecurityRequirement0, + }; + partial void PrepareApiPromptsDuplicateCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id, + global::LabelStudio.ModelInterfaceRequest request); + partial void PrepareApiPromptsDuplicateCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id, + global::LabelStudio.ModelInterfaceRequest request); + partial void ProcessApiPromptsDuplicateCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsDuplicateCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Duplicate a prompt + /// + /// + /// + /// 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 ApiPromptsDuplicateCreateAsync( + string id, + + global::LabelStudio.ModelInterfaceRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiPromptsDuplicateCreateArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsDuplicateCreateSecurityRequirements, + operationName: "ApiPromptsDuplicateCreateAsync"); + + 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/prompts/{id}/duplicate/", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiPromptsDuplicateCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + request: request); + + 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: "ApiPromptsDuplicateCreate", + methodName: "ApiPromptsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsDuplicateCreate", + methodName: "ApiPromptsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsDuplicateCreate", + methodName: "ApiPromptsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsDuplicateCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsDuplicateCreate", + methodName: "ApiPromptsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsDuplicateCreate", + methodName: "ApiPromptsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{id}/duplicate/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsDuplicateCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.ModelInterface.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.ModelInterface.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Duplicate a prompt + /// + /// + /// + /// + /// User who created Dataset + /// + /// + /// Model description + /// + /// + /// + /// + /// + /// Default Value: TextClassification + /// + /// + /// Model name + /// + /// 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 ApiPromptsDuplicateCreateAsync( + string id, + string title, + global::System.Collections.Generic.IList? associatedProjects = default, + global::LabelStudio.UserSimpleRequest? createdBy = default, + string? description = default, + object? inputFields = default, + int? organization = default, + object? outputClasses = default, + global::LabelStudio.SkillNameEnum? skillName = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.ModelInterfaceRequest + { + AssociatedProjects = associatedProjects, + CreatedBy = createdBy, + Description = description, + InputFields = inputFields, + Organization = organization, + OutputClasses = outputClasses, + SkillName = skillName, + Title = title, + }; + + return await ApiPromptsDuplicateCreateAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs new file mode 100644 index 0000000..d660970 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsDuplicateCreate.g.cs @@ -0,0 +1,472 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsDuplicateCreateSecurityRequirement0 = + 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_ApiPromptsVersionsDuplicateCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsDuplicateCreateSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsDuplicateCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId, + global::LabelStudio.ThirdPartyModelVersionRequest request); + partial void PrepareApiPromptsVersionsDuplicateCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId, + global::LabelStudio.ThirdPartyModelVersionRequest request); + partial void ProcessApiPromptsVersionsDuplicateCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsVersionsDuplicateCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Duplicate a prompt version
+ /// Duplicate an existing version, optionally overriding the model/connection. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsDuplicateCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.ThirdPartyModelVersionRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsDuplicateCreateArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsDuplicateCreateSecurityRequirements, + operationName: "ApiPromptsVersionsDuplicateCreateAsync"); + + 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/prompts/{promptId}/versions/{versionId}/duplicate", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiPromptsVersionsDuplicateCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId, + request: request); + + 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: "ApiPromptsVersionsDuplicateCreate", + methodName: "ApiPromptsVersionsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/duplicate\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsDuplicateCreate", + methodName: "ApiPromptsVersionsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/duplicate\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsDuplicateCreate", + methodName: "ApiPromptsVersionsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/duplicate\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsDuplicateCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsDuplicateCreate", + methodName: "ApiPromptsVersionsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/duplicate\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsDuplicateCreate", + methodName: "ApiPromptsVersionsDuplicateCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/duplicate\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsVersionsDuplicateCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.ThirdPartyModelVersion.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.ThirdPartyModelVersion.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Duplicate a prompt version
+ /// Duplicate an existing version, optionally overriding the model/connection. + ///
+ /// + /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// + /// + /// + /// + /// Parent model interface ID + /// + /// + /// Prompt to execute + /// + /// + /// The model provider to use e.g. OpenAI
+ /// * `OpenAI` - OpenAI
+ /// * `AzureOpenAI` - AzureOpenAI
+ /// * `AzureAIFoundry` - AzureAIFoundry
+ /// * `VertexAI` - VertexAI
+ /// * `Gemini` - Gemini
+ /// * `Anthropic` - Anthropic
+ /// * `Custom` - Custom + /// + /// + /// The model ID to use within the given provider, e.g. gpt-3.5 + /// + /// + /// Model name + /// + /// 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 ApiPromptsVersionsDuplicateCreateAsync( + int promptId, + int versionId, + string prompt, + string providerModelId, + string title, + int? maxFewShotExamples = default, + int? modelProviderConnection = default, + int? organization = default, + int? parentModel = default, + global::LabelStudio.ProviderEnum? provider = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.ThirdPartyModelVersionRequest + { + MaxFewShotExamples = maxFewShotExamples, + ModelProviderConnection = modelProviderConnection, + Organization = organization, + ParentModel = parentModel, + Prompt = prompt, + Provider = provider, + ProviderModelId = providerModelId, + Title = title, + }; + + return await ApiPromptsVersionsDuplicateCreateAsync( + promptId: promptId, + versionId: versionId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs new file mode 100644 index 0000000..7aa8b91 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesCreate.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsFewShotExamplesCreateSecurityRequirement0 = + 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_ApiPromptsVersionsFewShotExamplesCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsFewShotExamplesCreateSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsFewShotExamplesCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId, + global::LabelStudio.FewShotExampleRequest request); + partial void PrepareApiPromptsVersionsFewShotExamplesCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId, + global::LabelStudio.FewShotExampleRequest request); + partial void ProcessApiPromptsVersionsFewShotExamplesCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsVersionsFewShotExamplesCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Create a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.FewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsFewShotExamplesCreateArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsFewShotExamplesCreateSecurityRequirements, + operationName: "ApiPromptsVersionsFewShotExamplesCreateAsync"); + + 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/prompts/{promptId}/versions/{versionId}/few-shot-examples", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiPromptsVersionsFewShotExamplesCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId, + request: request); + + 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: "ApiPromptsVersionsFewShotExamplesCreate", + methodName: "ApiPromptsVersionsFewShotExamplesCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesCreate", + methodName: "ApiPromptsVersionsFewShotExamplesCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesCreate", + methodName: "ApiPromptsVersionsFewShotExamplesCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsFewShotExamplesCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesCreate", + methodName: "ApiPromptsVersionsFewShotExamplesCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesCreate", + methodName: "ApiPromptsVersionsFewShotExamplesCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsVersionsFewShotExamplesCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.FewShotExample.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.FewShotExample.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Create a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesCreateAsync( + int promptId, + int versionId, + int annotation, + int task, + int? order = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.FewShotExampleRequest + { + Annotation = annotation, + Order = order, + Task = task, + }; + + return await ApiPromptsVersionsFewShotExamplesCreateAsync( + promptId: promptId, + versionId: versionId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs new file mode 100644 index 0000000..ec145b9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesDestroy.g.cs @@ -0,0 +1,373 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsFewShotExamplesDestroySecurityRequirement0 = + 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_ApiPromptsVersionsFewShotExamplesDestroySecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsFewShotExamplesDestroySecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsFewShotExamplesDestroyArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + ref int promptId, + ref int versionId); + partial void PrepareApiPromptsVersionsFewShotExamplesDestroyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + int promptId, + int versionId); + partial void ProcessApiPromptsVersionsFewShotExamplesDestroyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Delete a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesDestroyAsync( + int id, + int promptId, + int versionId, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsFewShotExamplesDestroyArguments( + httpClient: HttpClient, + id: ref id, + promptId: ref promptId, + versionId: ref versionId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsFewShotExamplesDestroySecurityRequirements, + operationName: "ApiPromptsVersionsFewShotExamplesDestroyAsync"); + + 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/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}", + baseUri: HttpClient.BaseAddress); + 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.Delete, + 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); + PrepareApiPromptsVersionsFewShotExamplesDestroyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + promptId: promptId, + versionId: versionId); + + 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: "ApiPromptsVersionsFewShotExamplesDestroy", + methodName: "ApiPromptsVersionsFewShotExamplesDestroyAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesDestroy", + methodName: "ApiPromptsVersionsFewShotExamplesDestroyAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesDestroy", + methodName: "ApiPromptsVersionsFewShotExamplesDestroyAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsFewShotExamplesDestroyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesDestroy", + methodName: "ApiPromptsVersionsFewShotExamplesDestroyAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesDestroy", + methodName: "ApiPromptsVersionsFewShotExamplesDestroyAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs new file mode 100644 index 0000000..707d605 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesList.g.cs @@ -0,0 +1,397 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsFewShotExamplesListSecurityRequirement0 = + 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_ApiPromptsVersionsFewShotExamplesListSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsFewShotExamplesListSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsFewShotExamplesListArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? ordering, + ref int promptId, + ref int versionId); + partial void PrepareApiPromptsVersionsFewShotExamplesListRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? ordering, + int promptId, + int versionId); + partial void ProcessApiPromptsVersionsFewShotExamplesListResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsVersionsFewShotExamplesListResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ List few-shot examples
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// 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> ApiPromptsVersionsFewShotExamplesListAsync( + int promptId, + int versionId, + string? ordering = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsFewShotExamplesListArguments( + httpClient: HttpClient, + ordering: ref ordering, + promptId: ref promptId, + versionId: ref versionId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsFewShotExamplesListSecurityRequirements, + operationName: "ApiPromptsVersionsFewShotExamplesListAsync"); + + 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/prompts/{promptId}/versions/{versionId}/few-shot-examples", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("ordering", ordering) + ; + 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); + PrepareApiPromptsVersionsFewShotExamplesListRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + ordering: ordering, + promptId: promptId, + versionId: versionId); + + 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: "ApiPromptsVersionsFewShotExamplesList", + methodName: "ApiPromptsVersionsFewShotExamplesListAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesList", + methodName: "ApiPromptsVersionsFewShotExamplesListAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesList", + methodName: "ApiPromptsVersionsFewShotExamplesListAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsFewShotExamplesListResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesList", + methodName: "ApiPromptsVersionsFewShotExamplesListAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesList", + methodName: "ApiPromptsVersionsFewShotExamplesListAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsVersionsFewShotExamplesListResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs new file mode 100644 index 0000000..232ec6f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesPartialUpdate.g.cs @@ -0,0 +1,447 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsFewShotExamplesPartialUpdateSecurityRequirement0 = + 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_ApiPromptsVersionsFewShotExamplesPartialUpdateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsFewShotExamplesPartialUpdateSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsFewShotExamplesPartialUpdateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + ref int promptId, + ref int versionId, + global::LabelStudio.PatchedFewShotExampleRequest request); + partial void PrepareApiPromptsVersionsFewShotExamplesPartialUpdateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + int promptId, + int versionId, + global::LabelStudio.PatchedFewShotExampleRequest request); + partial void ProcessApiPromptsVersionsFewShotExamplesPartialUpdateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsVersionsFewShotExamplesPartialUpdateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Update a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesPartialUpdateAsync( + int id, + int promptId, + int versionId, + + global::LabelStudio.PatchedFewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsFewShotExamplesPartialUpdateArguments( + httpClient: HttpClient, + id: ref id, + promptId: ref promptId, + versionId: ref versionId, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsFewShotExamplesPartialUpdateSecurityRequirements, + operationName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync"); + + 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/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}", + baseUri: HttpClient.BaseAddress); + 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: new global::System.Net.Http.HttpMethod("PATCH"), + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiPromptsVersionsFewShotExamplesPartialUpdateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + promptId: promptId, + versionId: versionId, + request: request); + + 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: "ApiPromptsVersionsFewShotExamplesPartialUpdate", + methodName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesPartialUpdate", + methodName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesPartialUpdate", + methodName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsFewShotExamplesPartialUpdateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesPartialUpdate", + methodName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesPartialUpdate", + methodName: "ApiPromptsVersionsFewShotExamplesPartialUpdateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsVersionsFewShotExamplesPartialUpdateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.FewShotExample.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.FewShotExample.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Update a few-shot example
+ /// CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + ///
+ /// + /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesPartialUpdateAsync( + int id, + int promptId, + int versionId, + int? annotation = default, + int? order = default, + int? task = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.PatchedFewShotExampleRequest + { + Annotation = annotation, + Order = order, + Task = task, + }; + + return await ApiPromptsVersionsFewShotExamplesPartialUpdateAsync( + id: id, + promptId: promptId, + versionId: versionId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs new file mode 100644 index 0000000..168a54e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsFewShotExamplesReorderCreate.g.cs @@ -0,0 +1,438 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsFewShotExamplesReorderCreateSecurityRequirement0 = + 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_ApiPromptsVersionsFewShotExamplesReorderCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsFewShotExamplesReorderCreateSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsFewShotExamplesReorderCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId, + global::LabelStudio.FewShotExampleRequest request); + partial void PrepareApiPromptsVersionsFewShotExamplesReorderCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId, + global::LabelStudio.FewShotExampleRequest request); + partial void ProcessApiPromptsVersionsFewShotExamplesReorderCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiPromptsVersionsFewShotExamplesReorderCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Reorder few-shot examples
+ /// Accept ordered list of example IDs, update order fields. + ///
+ /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesReorderCreateAsync( + int promptId, + int versionId, + + global::LabelStudio.FewShotExampleRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsFewShotExamplesReorderCreateArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsFewShotExamplesReorderCreateSecurityRequirements, + operationName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync"); + + 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/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiPromptsVersionsFewShotExamplesReorderCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId, + request: request); + + 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: "ApiPromptsVersionsFewShotExamplesReorderCreate", + methodName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesReorderCreate", + methodName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesReorderCreate", + methodName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsFewShotExamplesReorderCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesReorderCreate", + methodName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsFewShotExamplesReorderCreate", + methodName: "ApiPromptsVersionsFewShotExamplesReorderCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/few-shot-examples/reorder\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + ProcessApiPromptsVersionsFewShotExamplesReorderCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.FewShotExample.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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); + + return + await global::LabelStudio.FewShotExample.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Reorder few-shot examples
+ /// Accept ordered list of example IDs, update order fields. + ///
+ /// + /// + /// + /// + /// + /// 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 ApiPromptsVersionsFewShotExamplesReorderCreateAsync( + int promptId, + int versionId, + int annotation, + int task, + int? order = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.FewShotExampleRequest + { + Annotation = annotation, + Order = order, + Task = task, + }; + + return await ApiPromptsVersionsFewShotExamplesReorderCreateAsync( + promptId: promptId, + versionId: versionId, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs new file mode 100644 index 0000000..7da100f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPredictionCountRetrieve.g.cs @@ -0,0 +1,373 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsPredictionCountRetrieveSecurityRequirement0 = + 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_ApiPromptsVersionsPredictionCountRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsPredictionCountRetrieveSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsPredictionCountRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId); + partial void PrepareApiPromptsVersionsPredictionCountRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId); + partial void ProcessApiPromptsVersionsPredictionCountRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Get prediction count for a prompt version
+ /// <Card href="https://humansignal.com/goenterprise">
+ /// <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
+ /// <p style="margin-top: 10px; font-size: 14px;">
+ /// This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
+ /// </p>
+ /// </Card>
+ /// Return how many tasks in a subset already have predictions for a given version. + ///
+ /// + /// + /// 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 ApiPromptsVersionsPredictionCountRetrieveAsync( + int promptId, + int versionId, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsPredictionCountRetrieveArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsPredictionCountRetrieveSecurityRequirements, + operationName: "ApiPromptsVersionsPredictionCountRetrieveAsync"); + + 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/prompts/{promptId}/versions/{versionId}/prediction-count", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiPromptsVersionsPredictionCountRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId); + + 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: "ApiPromptsVersionsPredictionCountRetrieve", + methodName: "ApiPromptsVersionsPredictionCountRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prediction-count\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPredictionCountRetrieve", + methodName: "ApiPromptsVersionsPredictionCountRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prediction-count\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPredictionCountRetrieve", + methodName: "ApiPromptsVersionsPredictionCountRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prediction-count\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsPredictionCountRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPredictionCountRetrieve", + methodName: "ApiPromptsVersionsPredictionCountRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prediction-count\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPredictionCountRetrieve", + methodName: "ApiPromptsVersionsPredictionCountRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prediction-count\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs new file mode 100644 index 0000000..799c8b5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsPromptPreviewRetrieve.g.cs @@ -0,0 +1,367 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsPromptPreviewRetrieveSecurityRequirement0 = + 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_ApiPromptsVersionsPromptPreviewRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsPromptPreviewRetrieveSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsPromptPreviewRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId); + partial void PrepareApiPromptsVersionsPromptPreviewRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId); + partial void ProcessApiPromptsVersionsPromptPreviewRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Preview assembled prompt
+ /// Return the fully assembled prompt with few-shot examples injected. + ///
+ /// + /// + /// 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 ApiPromptsVersionsPromptPreviewRetrieveAsync( + int promptId, + int versionId, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsPromptPreviewRetrieveArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsPromptPreviewRetrieveSecurityRequirements, + operationName: "ApiPromptsVersionsPromptPreviewRetrieveAsync"); + + 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/prompts/{promptId}/versions/{versionId}/prompt-preview", + baseUri: HttpClient.BaseAddress); + 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); + PrepareApiPromptsVersionsPromptPreviewRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId); + + 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: "ApiPromptsVersionsPromptPreviewRetrieve", + methodName: "ApiPromptsVersionsPromptPreviewRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prompt-preview\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPromptPreviewRetrieve", + methodName: "ApiPromptsVersionsPromptPreviewRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prompt-preview\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPromptPreviewRetrieve", + methodName: "ApiPromptsVersionsPromptPreviewRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prompt-preview\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsPromptPreviewRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPromptPreviewRetrieve", + methodName: "ApiPromptsVersionsPromptPreviewRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prompt-preview\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsPromptPreviewRetrieve", + methodName: "ApiPromptsVersionsPromptPreviewRetrieveAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/prompt-preview\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs new file mode 100644 index 0000000..d676795 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsTryTaskCreate.g.cs @@ -0,0 +1,369 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class PromptsClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiPromptsVersionsTryTaskCreateSecurityRequirement0 = + 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_ApiPromptsVersionsTryTaskCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiPromptsVersionsTryTaskCreateSecurityRequirement0, + }; + partial void PrepareApiPromptsVersionsTryTaskCreateArguments( + global::System.Net.Http.HttpClient httpClient, + ref int promptId, + ref int versionId); + partial void PrepareApiPromptsVersionsTryTaskCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int promptId, + int versionId); + partial void ProcessApiPromptsVersionsTryTaskCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// ✨ Try prompt on a single task
+ /// Run a single-task ephemeral prediction using the current (possibly unsaved) prompt.
+ /// No ModelRun is created and no Prediction is stored. The user iterates
+ /// until happy, then saves and does a full Run. + ///
+ /// + /// + /// 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 ApiPromptsVersionsTryTaskCreateAsync( + int promptId, + int versionId, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiPromptsVersionsTryTaskCreateArguments( + httpClient: HttpClient, + promptId: ref promptId, + versionId: ref versionId); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiPromptsVersionsTryTaskCreateSecurityRequirements, + operationName: "ApiPromptsVersionsTryTaskCreateAsync"); + + 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/prompts/{promptId}/versions/{versionId}/try-task", + baseUri: HttpClient.BaseAddress); + 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.Post, + 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); + PrepareApiPromptsVersionsTryTaskCreateRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + promptId: promptId, + versionId: versionId); + + 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: "ApiPromptsVersionsTryTaskCreate", + methodName: "ApiPromptsVersionsTryTaskCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/try-task\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + 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 __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsTryTaskCreate", + methodName: "ApiPromptsVersionsTryTaskCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/try-task\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsTryTaskCreate", + methodName: "ApiPromptsVersionsTryTaskCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/try-task\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiPromptsVersionsTryTaskCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsTryTaskCreate", + methodName: "ApiPromptsVersionsTryTaskCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/try-task\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiPromptsVersionsTryTaskCreate", + methodName: "ApiPromptsVersionsTryTaskCreateAsync", + pathTemplate: "$\"/api/prompts/{promptId}/versions/{versionId}/try-task\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + } + catch (global::System.Exception __ex) + { + throw new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + } + 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 new global::LabelStudio.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + 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.PromptsClient.ApiPromptsVersionsUpdate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs index 435e867..6bb0c6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.ApiPromptsVersionsUpdate.g.cs @@ -417,6 +417,9 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( ///
/// /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -450,6 +453,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( string prompt, string providerModelId, string title, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, @@ -459,6 +463,7 @@ partial void ProcessApiPromptsVersionsUpdateResponseContent( { var __request = new global::LabelStudio.ThirdPartyModelVersionRequest { + MaxFewShotExamples = maxFewShotExamples, ModelProviderConnection = modelProviderConnection, Organization = organization, ParentModel = parentModel, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs index 760c0a4..56f4713 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create2.g.cs @@ -410,6 +410,9 @@ partial void ProcessCreate2ResponseContent( /// Create a new version of a prompt. ///
/// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -442,6 +445,7 @@ partial void ProcessCreate2ResponseContent( string prompt, string providerModelId, string title, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, @@ -451,6 +455,7 @@ partial void ProcessCreate2ResponseContent( { var __request = new global::LabelStudio.ThirdPartyModelVersionRequest { + MaxFewShotExamples = maxFewShotExamples, ModelProviderConnection = modelProviderConnection, Organization = organization, ParentModel = parentModel, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs index 8cefe52..4370588 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Create3.g.cs @@ -417,6 +417,9 @@ partial void ProcessCreate3ResponseContent( ///
/// /// + /// + /// DM filter group for Filtered subset. Stored for display/re-run purposes. + /// /// /// Job ID for inference job for a ModelRun e.g. Adala job ID /// @@ -431,7 +434,11 @@ partial void ProcessCreate3ResponseContent( /// /// * `All` - All
/// * `HasGT` - HasGT
- /// * `Sample` - Sample + /// * `Sample` - Sample
+ /// * `Custom` - Custom + /// + /// + /// Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. /// /// /// @@ -444,10 +451,12 @@ partial void ProcessCreate3ResponseContent( int versionId, bool onlyMissingPredictions, int project, + object? filtersJson = default, string? jobId = default, int? organization = default, global::System.DateTime? predictionsUpdatedAt = default, global::LabelStudio.ProjectSubsetEnum? projectSubset = default, + int? sampleSubsetSize = default, int? totalCorrectPredictions = default, int? totalPredictions = default, int? totalTasks = default, @@ -456,12 +465,14 @@ partial void ProcessCreate3ResponseContent( { var __request = new global::LabelStudio.ModelRunRequest { + FiltersJson = filtersJson, JobId = jobId, OnlyMissingPredictions = onlyMissingPredictions, Organization = organization, PredictionsUpdatedAt = predictionsUpdatedAt, Project = project, ProjectSubset = projectSubset, + SampleSubsetSize = sampleSubsetSize, TotalCorrectPredictions = totalCorrectPredictions, TotalPredictions = totalPredictions, TotalTasks = totalTasks, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs index 994c79f..4ee4689 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.PromptsClient.Update2.g.cs @@ -417,6 +417,9 @@ partial void ProcessUpdate2ResponseContent( ///
/// /// + /// + /// Max number of few-shot examples to include in prompts. 0 = disabled. + /// /// /// /// @@ -447,6 +450,7 @@ partial void ProcessUpdate2ResponseContent( public async global::System.Threading.Tasks.Task Update2Async( int promptId, int versionId, + int? maxFewShotExamples = default, int? modelProviderConnection = default, int? organization = default, int? parentModel = default, @@ -459,6 +463,7 @@ partial void ProcessUpdate2ResponseContent( { var __request = new global::LabelStudio.PatchedThirdPartyModelVersionRequest { + MaxFewShotExamples = maxFewShotExamples, ModelProviderConnection = modelProviderConnection, Organization = organization, ParentModel = parentModel, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs index cd77519..86a7576 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.StatsClient.TotalAgreement.g.cs @@ -52,7 +52,7 @@ partial void ProcessTotalAgreementResponseContent( /// </p>
/// </Card>
/// Overall or per-label total agreement across the project.
- /// NOTE: due to an open issue in Fern, SDK clients will raise ApiError upon handling a 204 response. As a workaround, wrap call to this function in a try-except block. + /// NOTE: when this endpoint returns 204 No Content, SDK clients return None. ///
/// /// diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 4dbaa1a..e7128f1 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -4951,6 +4951,73 @@ paths: x-fern-sdk-group-name: - files x-fern-sdk-method-name: update + /api/inference-runs/bulk-indicators/: + get: + description: |- + Bulk fetch default indicators for multiple inference runs at once. + + Returns aggregated metrics for up to 20 completed runs in a single request, + used by the Comparison Matrix to show all versions side by side. + operationId: api_inference_runs_bulk_indicators_retrieve + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Bulk fetch indicators for inference runs + tags: + - Prompts + /api/inference-runs/re-evaluate/: + post: + description: |- + Create a new inference run targeting only specific tasks (re-evaluation). + + Supports four modes: + - custom: provide explicit task_ids + - failed: re-run tasks with failed predictions from a source run + - incorrect: re-run tasks with score < 1.0 from a source run + - regressions: re-run tasks that regressed between two runs + operationId: api_inference_runs_re_evaluate_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ReEvaluateRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ReEvaluateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ReEvaluateRequest' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ReEvaluate' + description: '' + security: + - Token: [] + summary: ✨ Re-evaluate specific tasks from a previous run + tags: + - Prompts + /api/inference-runs/regressions/: + get: + description: |- + Compare correctness transitions between two inference runs. + + Classifies each task as regression, improvement, stable_correct, + stable_incorrect, new, or removed based on prediction scores. + operationId: api_inference_runs_regressions_retrieve + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Compare correctness transitions between inference runs + tags: + - Prompts /api/inference-runs/{id}/indicators/: get: description: |- @@ -5033,6 +5100,255 @@ paths: - prompts - indicators x-fern-sdk-method-name: get + /api/interfaces/: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ List saved interfaces for the current organization. + operationId: api_interfaces_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 + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedLseInterfaceList' + description: '' + security: + - Token: [] + summary: ✨ List saved interfaces + tags: + - Interfaces + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create a new saved interface. + operationId: api_interfaces_create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterface' + description: '' + security: + - Token: [] + summary: ✨ Create a saved interface + tags: + - Interfaces + /api/interfaces/{id}/: + delete: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Delete a saved interface. + operationId: api_interfaces_destroy + parameters: + - in: path + name: id + required: true + schema: + type: string + responses: + '204': + description: No response body + security: + - Token: [] + summary: ✨ Delete a saved interface + tags: + - Interfaces + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Retrieve a saved interface by ID. + operationId: api_interfaces_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterface' + description: '' + security: + - Token: [] + summary: ✨ Get a saved interface + tags: + - Interfaces + patch: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Partially update a saved interface. + operationId: api_interfaces_partial_update + parameters: + - in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedLseInterfaceRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PatchedLseInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedLseInterfaceRequest' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterface' + description: '' + security: + - Token: [] + summary: ✨ Partially update a saved interface + tags: + - Interfaces + put: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Update a saved interface. + operationId: api_interfaces_update + parameters: + - in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterface' + description: '' + security: + - Token: [] + summary: ✨ Update a saved interface + tags: + - Interfaces + /api/interfaces/{id}/duplicate/: + post: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Create a copy of an existing saved interface. + operationId: api_interfaces_duplicate_create + parameters: + - in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/LseInterfaceRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/LseInterface' + description: '' + security: + - Token: [] + summary: ✨ Duplicate a saved interface + tags: + - Interfaces /api/invite: get: description: Get invite link for organization @@ -11505,7 +11821,7 @@ paths: Overall or per-label total agreement across the project. - NOTE: due to an open issue in Fern, SDK clients will raise ApiError upon handling a 204 response. As a workaround, wrap call to this function in a try-except block. + NOTE: when this endpoint returns 204 No Content, SDK clients return None. operationId: api_projects_stats_total_agreement_retrieve parameters: - in: path @@ -12407,6 +12723,24 @@ paths: - public x-fern-sdk-group-name: projects x-fern-sdk-method-name: validate_label_config + /api/projects/{project_pk}/annotations-browse: + get: + description: Lightweight annotations list for few-shot example browser. + operationId: api_projects_annotations_browse_retrieve + parameters: + - in: path + name: project_pk + required: true + schema: + type: integer + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Browse annotations for few-shot examples + tags: + - Prompts /api/projects/{project_pk}/dimensions/: get: description: |- @@ -13419,6 +13753,39 @@ paths: - Prompts x-fern-audiences: - internal + /api/prompts/{id}/duplicate/: + post: + operationId: api_prompts_duplicate_create + parameters: + - in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInterfaceRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ModelInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ModelInterfaceRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInterface' + description: '' + security: + - Token: [] + summary: ✨ Duplicate a prompt + tags: + - Prompts /api/prompts/{id}/get-default-version-name: get: description: |- @@ -13706,23 +14073,101 @@ paths: description: '' security: - Token: [] - summary: ✨ Put prompt version + summary: ✨ Put prompt version + tags: + - Prompts + x-fern-audiences: + - internal + /api/prompts/{prompt_id}/versions/{version_id}/cost-estimate: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Get an estimate of the cost for making an inference run on the selected Prompt Version and Project/ProjectSubset + operationId: api_prompts_versions_cost_estimate_retrieve + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InferenceRunCostEstimate' + description: Cost estimate response + security: + - Token: [] + summary: ✨ Get cost estimate for running a prompt version on a particular project/subset + tags: + - Prompts + x-fern-audiences: + - public + x-fern-sdk-group-name: + - prompts + - versions + x-fern-sdk-method-name: cost_estimate + /api/prompts/{prompt_id}/versions/{version_id}/duplicate: + post: + description: Duplicate an existing version, optionally overriding the model/connection. + operationId: api_prompts_versions_duplicate_create + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ThirdPartyModelVersionRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ThirdPartyModelVersionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ThirdPartyModelVersionRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ThirdPartyModelVersion' + description: '' + security: + - Token: [] + summary: ✨ Duplicate a prompt version tags: - Prompts - x-fern-audiences: - - internal - /api/prompts/{prompt_id}/versions/{version_id}/cost-estimate: + /api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples: get: - description: |- - - Label Studio Enterprise badge -

- This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) -

-
- Get an estimate of the cost for making an inference run on the selected Prompt Version and Project/ProjectSubset - operationId: api_prompts_versions_cost_estimate_retrieve + description: CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + operationId: api_prompts_versions_few_shot_examples_list parameters: + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string - in: path name: prompt_id required: true @@ -13738,19 +14183,162 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InferenceRunCostEstimate' - description: Cost estimate response + items: + $ref: '#/components/schemas/FewShotExample' + type: array + description: '' security: - Token: [] - summary: ✨ Get cost estimate for running a prompt version on a particular project/subset + summary: ✨ List few-shot examples + tags: + - Prompts + post: + description: CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + operationId: api_prompts_versions_few_shot_examples_create + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/FewShotExample' + description: '' + security: + - Token: [] + summary: ✨ Create a few-shot example + tags: + - Prompts + /api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/reorder: + post: + description: Accept ordered list of example IDs, update order fields. + operationId: api_prompts_versions_few_shot_examples_reorder_create + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/FewShotExampleRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FewShotExample' + description: '' + security: + - Token: [] + summary: ✨ Reorder few-shot examples + tags: + - Prompts + /api/prompts/{prompt_id}/versions/{version_id}/few-shot-examples/{id}: + delete: + description: CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + operationId: api_prompts_versions_few_shot_examples_destroy + parameters: + - in: path + name: id + required: true + schema: + type: integer + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + responses: + '204': + description: No response body + security: + - Token: [] + summary: ✨ Delete a few-shot example + tags: + - Prompts + patch: + description: CRUD API for managing few-shot examples on a ThirdPartyModelVersion. + operationId: api_prompts_versions_few_shot_examples_partial_update + parameters: + - in: path + name: id + required: true + schema: + type: integer + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedFewShotExampleRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PatchedFewShotExampleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedFewShotExampleRequest' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FewShotExample' + description: '' + security: + - Token: [] + summary: ✨ Update a few-shot example tags: - Prompts - x-fern-audiences: - - public - x-fern-sdk-group-name: - - prompts - - versions - x-fern-sdk-method-name: cost_estimate /api/prompts/{prompt_id}/versions/{version_id}/inference-runs: get: description: |- @@ -13914,6 +14502,59 @@ paths: - prompts - runs x-fern-sdk-method-name: cancel + /api/prompts/{prompt_id}/versions/{version_id}/prediction-count: + get: + description: |- + + Label Studio Enterprise badge +

+ This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) +

+
+ Return how many tasks in a subset already have predictions for a given version. + operationId: api_prompts_versions_prediction_count_retrieve + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Get prediction count for a prompt version + tags: + - Prompts + /api/prompts/{prompt_id}/versions/{version_id}/prompt-preview: + get: + description: Return the fully assembled prompt with few-shot examples injected. + operationId: api_prompts_versions_prompt_preview_retrieve + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Preview assembled prompt + tags: + - Prompts /api/prompts/{prompt_id}/versions/{version_id}/refine: get: description: |- @@ -14021,6 +14662,33 @@ paths: - prompts - versions x-fern-sdk-method-name: refine_prompt + /api/prompts/{prompt_id}/versions/{version_id}/try-task: + post: + description: |- + Run a single-task ephemeral prediction using the current (possibly unsaved) prompt. + + No ModelRun is created and no Prediction is stored. The user iterates + until happy, then saves and does a full Run. + operationId: api_prompts_versions_try_task_create + parameters: + - in: path + name: prompt_id + required: true + schema: + type: integer + - in: path + name: version_id + required: true + schema: + type: integer + responses: + '200': + description: No response body + security: + - Token: [] + summary: ✨ Try prompt on a single task + tags: + - Prompts /api/saml/settings: delete: description: |- @@ -22539,6 +23207,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimple' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true custom_script: description: Plugins type: string @@ -22585,6 +23261,8 @@ components: id: readOnly: true type: integer + input_schema: + nullable: true is_dimensions_enabled: readOnly: true type: string @@ -22722,6 +23400,12 @@ components: skipped_annotations_number: readOnly: true type: string + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer start_training_on_annotation_update: description: Start model training after any annotations are submitted or updated readOnly: true @@ -22749,6 +23433,9 @@ components: total_predictions_number: readOnly: true type: integer + use_custom_interface: + default: false + type: boolean useful_annotation_number: nullable: true readOnly: true @@ -26034,6 +26721,51 @@ components: - state_record - success type: object + FewShotExample: + properties: + annotation: + type: integer + annotation_result: + readOnly: true + type: string + created_at: + format: date-time + readOnly: true + type: string + id: + readOnly: true + type: integer + order: + maximum: 2147483647 + minimum: 0 + type: integer + task: + type: integer + task_data: + readOnly: true + type: string + required: + - annotation + - annotation_result + - created_at + - id + - task + - task_data + type: object + FewShotExampleRequest: + properties: + annotation: + type: integer + order: + maximum: 2147483647 + minimum: 0 + type: integer + task: + type: integer + required: + - annotation + - task + type: object FileUpload: properties: file: @@ -28549,6 +29281,102 @@ components: - $ref: '#/components/schemas/TrialRoleEnum' nullable: true type: object + LseInterface: + properties: + artifacts: + description: AI-produced code snapshots for session continuity + code: + description: JSX source code for the interface screen module + type: string + compiled: + type: string + created_at: + format: date-time + readOnly: true + type: string + created_by: + allOf: + - $ref: '#/components/schemas/UserSimple' + readOnly: true + data_sample: + description: Sample task data for preview + description: + type: string + id: + readOnly: true + type: integer + input_schema: + description: JSON Schema declaring expected task data field types for import validation + is_system: + description: HumanSignal-provided system template visible to all organizations + readOnly: true + type: boolean + messages: + description: Chat conversation history + output_schema: + description: JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + projects_count: + default: 0 + readOnly: true + type: integer + title: + maxLength: 500 + type: string + updated_at: + format: date-time + readOnly: true + type: string + versions: + description: Code version history + workspace: + nullable: true + type: integer + required: + - code + - compiled + - created_at + - created_by + - id + - is_system + - projects_count + - title + - updated_at + type: object + LseInterfaceRequest: + properties: + artifacts: + description: AI-produced code snapshots for session continuity + code: + description: JSX source code for the interface screen module + minLength: 1 + type: string + compiled: + minLength: 1 + type: string + data_sample: + description: Sample task data for preview + description: + type: string + input_schema: + description: JSON Schema declaring expected task data field types for import validation + messages: + description: Chat conversation history + output_schema: + description: JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + title: + maxLength: 500 + minLength: 1 + type: string + versions: + description: Code version history + workspace: + nullable: true + type: integer + required: + - code + - compiled + - title + type: object LseOrganization: properties: billing: @@ -28762,6 +29590,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimple' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true custom_script: description: Plugins type: string @@ -28806,6 +29642,8 @@ components: id: readOnly: true type: integer + input_schema: + nullable: true is_dimensions_enabled: readOnly: true type: string @@ -28932,6 +29770,12 @@ components: description: Skipped by collaborators annotation number in project readOnly: true type: integer + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer start_training_on_annotation_update: description: Start model training after any annotations are submitted or updated readOnly: true @@ -28971,6 +29815,9 @@ components: description: Total predictions number in project including skipped_annotations_number, ground_truth_number, and useful_annotation_number. readOnly: true type: integer + use_custom_interface: + default: false + type: boolean useful_annotation_number: description: Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number readOnly: true @@ -29116,6 +29963,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimple' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true description: description: Project Description nullable: true @@ -29141,6 +29996,8 @@ components: id: readOnly: true type: integer + input_schema: + nullable: true is_draft: description: Whether or not the project is in the middle of being created type: boolean @@ -29228,6 +30085,12 @@ components: description: Skipped by collaborators annotation number in project readOnly: true type: integer + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer start_training_on_annotation_update: description: Start model training after any annotations are submitted or updated readOnly: true @@ -29263,6 +30126,9 @@ components: description: Total predictions number in project including skipped_annotations_number, ground_truth_number, and useful_annotation_number. readOnly: true type: integer + use_custom_interface: + default: false + type: boolean useful_annotation_number: description: Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number readOnly: true @@ -29311,6 +30177,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimpleRequest' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true description: description: Project Description nullable: true @@ -29325,6 +30199,8 @@ components: description: Labeling instructions in HTML format nullable: true type: string + input_schema: + nullable: true is_draft: description: Whether or not the project is in the middle of being created type: boolean @@ -29393,6 +30269,12 @@ components: allOf: - $ref: '#/components/schemas/SkipQueueEnum' nullable: true + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer task_data_login: description: 'Task data credentials: login' maxLength: 256 @@ -29409,6 +30291,9 @@ components: minLength: 3 nullable: true type: string + use_custom_interface: + default: false + type: boolean workspace: description: In Workspace type: integer @@ -29532,6 +30417,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimple' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true custom_script: description: Plugins type: string @@ -29576,6 +30469,8 @@ components: id: readOnly: true type: integer + input_schema: + nullable: true is_dimensions_enabled: readOnly: true type: string @@ -29712,6 +30607,12 @@ components: skipped_annotations_number: readOnly: true type: integer + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer start_training_on_annotation_update: description: Start model training after any annotations are submitted or updated readOnly: true @@ -29750,6 +30651,9 @@ components: nullable: true readOnly: true type: integer + use_custom_interface: + default: false + type: boolean useful_annotation_number: nullable: true readOnly: true @@ -29883,6 +30787,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimple' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true custom_script: description: Plugins type: string @@ -29917,6 +30829,8 @@ components: id: readOnly: true type: integer + input_schema: + nullable: true is_draft: description: Whether or not the project is in the middle of being created type: boolean @@ -30028,6 +30942,12 @@ components: description: Skipped by collaborators annotation number in project readOnly: true type: integer + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer start_training_on_annotation_update: description: Start model training after any annotations are submitted or updated readOnly: true @@ -30067,6 +30987,9 @@ components: description: Total predictions number in project including skipped_annotations_number, ground_truth_number, and useful_annotation_number. readOnly: true type: integer + use_custom_interface: + default: false + type: boolean useful_annotation_number: description: Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number readOnly: true @@ -31819,14 +32742,6 @@ components: minLength: 1 type: string type: object - ModeEnum: - description: |- - * `settings` - Only settings - * `settings,data` - Settings and tasks - enum: - - settings - - settings,data - type: string ModelInterface: properties: associated_projects: @@ -32118,9 +33033,12 @@ components: readOnly: true type: string created_by: - nullable: true + allOf: + - $ref: '#/components/schemas/UserSimple' readOnly: true - type: integer + filters_json: + description: DM filter group for Filtered subset. Stored for display/re-run purposes. + nullable: true id: readOnly: true type: integer @@ -32143,21 +33061,38 @@ components: type: integer project_subset: $ref: '#/components/schemas/ProjectSubsetEnum' + sample_subset_size: + description: Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + source_model_run: + nullable: true + readOnly: true + type: integer status: allOf: - $ref: '#/components/schemas/ModelRunStatusEnum' readOnly: true + task_ids: + description: List of task IDs for Custom subset re-evaluation. + nullable: true + readOnly: true total_correct_predictions: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer total_predictions: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer total_tasks: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer triggered_at: format: date-time @@ -32171,11 +33106,16 @@ components: - id - parent_model - project + - source_model_run - status + - task_ids - triggered_at type: object ModelRunRequest: properties: + filters_json: + description: DM filter group for Filtered subset. Stored for display/re-run purposes. + nullable: true job_id: description: Job ID for inference job for a ModelRun e.g. Adala job ID maxLength: 255 @@ -32197,17 +33137,26 @@ components: type: integer project_subset: $ref: '#/components/schemas/ProjectSubsetEnum' + sample_subset_size: + description: Custom sample size for Sample subset. Uses PROMPTER_SAMPLE_SUBSET_SIZE if not set. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer total_correct_predictions: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer total_predictions: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer total_tasks: maximum: 2147483647 minimum: -2147483648 + nullable: true type: integer required: - project @@ -32680,6 +33629,29 @@ components: - count - results type: object + PaginatedLseInterfaceList: + properties: + count: + example: 123 + type: integer + next: + example: http://api.example.org/accounts/?page=4 + format: uri + nullable: true + type: string + previous: + example: http://api.example.org/accounts/?page=2 + format: uri + nullable: true + type: string + results: + items: + $ref: '#/components/schemas/LseInterface' + type: array + required: + - count + - results + type: object PaginatedLseOrganizationMemberListList: properties: count: @@ -33709,6 +34681,17 @@ components: minimum: 0 type: integer type: object + PatchedFewShotExampleRequest: + properties: + annotation: + type: integer + order: + maximum: 2147483647 + minimum: 0 + type: integer + task: + type: integer + type: object PatchedFileUploadRequest: properties: file: @@ -34185,6 +35168,37 @@ components: value: description: Label value type: object + PatchedLseInterfaceRequest: + properties: + artifacts: + description: AI-produced code snapshots for session continuity + code: + description: JSX source code for the interface screen module + minLength: 1 + type: string + compiled: + minLength: 1 + type: string + data_sample: + description: Sample task data for preview + description: + type: string + input_schema: + description: JSON Schema declaring expected task data field types for import validation + messages: + description: Chat conversation history + output_schema: + description: JSON Schema declaring the annotation output fields this interface produces (for Prompter/auto-labeling) + title: + maxLength: 500 + minLength: 1 + type: string + versions: + description: Code version history + workspace: + nullable: true + type: integer + type: object PatchedLseOrganizationSerializerUpdateRequest: description: |- A serializer mixin that takes an additional `fields` argument that controls @@ -34312,6 +35326,14 @@ components: allOf: - $ref: '#/components/schemas/UserSimpleRequest' description: Project owner + custom_interface_code: + nullable: true + type: string + custom_interface_compiled: + nullable: true + type: string + custom_interface_params: + nullable: true custom_script: description: Plugins type: string @@ -34335,6 +35357,8 @@ components: description: Instructions nullable: true type: string + input_schema: + nullable: true is_draft: description: Whether or not the project is in the middle of being created type: boolean @@ -34424,6 +35448,12 @@ components: allOf: - $ref: '#/components/schemas/SkipQueueEnum' nullable: true + source_interface_id: + nullable: true + type: integer + source_interface_version: + nullable: true + type: integer strict_task_overlap: default: true description: Enforce strict overlap limit @@ -34444,6 +35474,9 @@ components: minLength: 3 nullable: true type: string + use_custom_interface: + default: false + type: boolean workspace: description: Workspace type: integer @@ -35076,6 +36109,12 @@ components: type: object PatchedThirdPartyModelVersionRequest: properties: + max_few_shot_examples: + description: Max number of few-shot examples to include in prompts. 0 = disabled. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer model_provider_connection: nullable: true type: integer @@ -35593,6 +36632,14 @@ components: - total_predictions_number - useful_annotation_number type: object + ProjectDuplicateModeEnum: + description: |- + * `settings` - Only settings + * `settings,data` - Settings and tasks + enum: + - settings + - settings,data + type: string ProjectDuplicateRequest: properties: description: @@ -35601,7 +36648,7 @@ components: type: string mode: allOf: - - $ref: '#/components/schemas/ModeEnum' + - $ref: '#/components/schemas/ProjectDuplicateModeEnum' description: |- What to Duplicate (Project configuration only / Project configuration and tasks) @@ -35895,10 +36942,12 @@ components: * `All` - All * `HasGT` - HasGT * `Sample` - Sample + * `Custom` - Custom enum: - All - HasGT - Sample + - Custom type: string ProjectSubsetItem: properties: @@ -36081,6 +37130,56 @@ components: - Anthropic - Custom type: string + ReEvaluate: + properties: + mode: + $ref: '#/components/schemas/ReEvaluateModeEnum' + model_version_id: + type: integer + run_b_id: + type: integer + source_model_run_id: + type: integer + task_ids: + default: [] + items: + type: integer + type: array + required: + - mode + - model_version_id + type: object + ReEvaluateModeEnum: + description: |- + * `failed` - failed + * `incorrect` - incorrect + * `regressions` - regressions + * `custom` - custom + enum: + - failed + - incorrect + - regressions + - custom + type: string + ReEvaluateRequest: + properties: + mode: + $ref: '#/components/schemas/ReEvaluateModeEnum' + model_version_id: + type: integer + run_b_id: + type: integer + source_model_run_id: + type: integer + task_ids: + default: [] + items: + type: integer + type: array + required: + - mode + - model_version_id + type: object ReasonEnum: description: |- * `MANUAL` - Manual @@ -38071,6 +39170,15 @@ components: id: readOnly: true type: integer + max_few_shot_examples: + description: Max number of few-shot examples to include in prompts. 0 = disabled. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + model_display_name: + readOnly: true + type: string model_provider_connection: nullable: true type: integer @@ -38115,6 +39223,7 @@ components: - created_at - created_by - id + - model_display_name - prompt - provider_model_id - score @@ -38123,6 +39232,12 @@ components: type: object ThirdPartyModelVersionRequest: properties: + max_few_shot_examples: + description: Max number of few-shot examples to include in prompts. 0 = disabled. + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer model_provider_connection: nullable: true type: integer