diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs new file mode 100644 index 00000000..89dc1499 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface ILearningResourcesClient + { + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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> ApiLearningResourcesExportRetrieveAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = 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.ILearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs new file mode 100644 index 00000000..5b8bb5af --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs @@ -0,0 +1,129 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface ILearningResourcesClient + { + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsBytesAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsBytesAsStreamAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// 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> ApiLearningResourcesExportRetrieveAsBytesAsStreamAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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> ApiLearningResourcesExportRetrieveAsBytesAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = 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.ILearningResourcesClient.ApiLearningResourcesImportCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesImportCreate.g.cs new file mode 100644 index 00000000..e9d6c69b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesImportCreate.g.cs @@ -0,0 +1,123 @@ +#nullable enable + +namespace LabelStudio +{ + public partial interface ILearningResourcesClient + { + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// 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 ApiLearningResourcesImportCreateAsync( + + global::LabelStudio.ApiLearningResourcesImportCreateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// 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> ApiLearningResourcesImportCreateAsResponseAsync( + + global::LabelStudio.ApiLearningResourcesImportCreateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// + /// + /// + /// 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 ApiLearningResourcesImportCreateAsync( + byte[] file, + string filename, + int workspace, + string? title = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// The stream to send as the multipart 'file' file part. + /// + /// + /// + /// + /// 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 ApiLearningResourcesImportCreateAsync( + global::System.IO.Stream file, + string filename, + int workspace, + string? title = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// The stream to send as the multipart 'file' file part. + /// + /// + /// + /// + /// 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> ApiLearningResourcesImportCreateAsResponseAsync( + global::System.IO.Stream file, + string filename, + int workspace, + string? title = 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.ILearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs index dbfec738..09d59698 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs @@ -5,14 +5,14 @@ namespace LabelStudio public partial interface ILearningResourcesClient { /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// /// @@ -22,18 +22,18 @@ public partial interface ILearningResourcesClient global::System.Threading.Tasks.Task ApiLearningResourcesUploadCreateAsync( int id, - global::LabelStudio.LearningResourceRequest request, + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// /// @@ -43,64 +43,35 @@ public partial interface ILearningResourcesClient global::System.Threading.Tasks.Task> ApiLearningResourcesUploadCreateAsResponseAsync( int id, - global::LabelStudio.LearningResourceRequest request, + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// * `minutes` - Minutes
- /// * `hours` - Hours
- /// * `days` - Days
- /// * `weeks` - Weeks - /// - /// - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// /// 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 ApiLearningResourcesUploadCreateAsync( int id, - bool? allowStandalone = default, - string? color = default, - string? coverImageUrl = default, - bool? defaultAllowManualAccess = default, - bool? defaultGateAnnotatorDataManager = default, - bool? defaultGateAnnotatorLabelStream = default, - bool? defaultGateReviewerDataManager = default, - bool? defaultGateReviewerLabelStream = default, - bool? defaultGateReviewerReviewStream = default, - global::LabelStudio.EstimatedDurationUnitEnum? estimatedDurationUnit = default, - int? estimatedDurationValue = default, - bool? generateCertificateOnCompletion = default, - bool? hideCompletedQuizzes = default, - bool? singlePageReview = default, - string? summary = default, - string? title = default, - int? workspace = default, + bool? allowExternal = default, + bool? dryRun = default, + byte[]? file = default, + string? filename = default, + string? url = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.Update.g.cs index cf899820..b6d4f40e 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.Update.g.cs @@ -46,6 +46,10 @@ public partial interface IUsersClient /// /// Allow sending newsletters to user /// + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + /// /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -72,6 +76,7 @@ public partial interface IUsersClient int id, int? activeOrganization = default, bool? allowNewsletters = default, + string? currentPassword = default, object? customHotkeys = default, global::System.DateTime? dateJoined = default, object? emailNotificationSettings = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.UpdateCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.UpdateCurrentUser.g.cs index 3a69b6bb..eba61130 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.UpdateCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IUsersClient.UpdateCurrentUser.g.cs @@ -56,6 +56,10 @@ public partial interface IUsersClient /// /// Allow sending newsletters to user /// + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + /// /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -81,6 +85,7 @@ public partial interface IUsersClient global::System.Threading.Tasks.Task UpdateCurrentUserAsync( int? activeOrganization = default, bool? allowNewsletters = default, + string? currentPassword = default, object? customHotkeys = default, global::System.DateTime? dateJoined = default, object? emailNotificationSettings = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnum.g.cs new file mode 100644 index 00000000..ae798f5c --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnum.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class LearningResourceUploadResponseStatusEnumJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.LearningResourceUploadResponseStatusEnum 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.LearningResourceUploadResponseStatusEnumExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.LearningResourceUploadResponseStatusEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.LearningResourceUploadResponseStatusEnum); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.LearningResourceUploadResponseStatusEnum value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::LabelStudio.LearningResourceUploadResponseStatusEnumExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumNullable.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumNullable.g.cs new file mode 100644 index 00000000..722d17a5 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace LabelStudio.JsonConverters +{ + /// + public sealed class LearningResourceUploadResponseStatusEnumNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::LabelStudio.LearningResourceUploadResponseStatusEnum? 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.LearningResourceUploadResponseStatusEnumExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::LabelStudio.LearningResourceUploadResponseStatusEnum)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::LabelStudio.LearningResourceUploadResponseStatusEnum?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::LabelStudio.LearningResourceUploadResponseStatusEnum? 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.LearningResourceUploadResponseStatusEnumExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index 11cad3d4..016d926a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -150,6 +150,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseEditingSessionHeartbeatRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseEditingSessionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseExportPayload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseImportResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum), TypeInfoPropertyName = "EstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseModule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseOutline))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -186,7 +189,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DimensionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DuplicateLearningResourceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EditionEnum), TypeInfoPropertyName = "EditionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum), TypeInfoPropertyName = "EstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.Export))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ExportConvertRequest))] @@ -296,6 +298,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum), TypeInfoPropertyName = "LearningResourceUploadResponseStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LocalFilesExportStorage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LocalFilesExportStorageValidateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LocalFilesExportStorageWriteRequest))] @@ -512,9 +515,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAnnotationRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAnnotationReviewRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -536,6 +536,9 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedBlueprintUpdateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedCommentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PatchedCoursePageUpdateRequest))] @@ -756,6 +759,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceProjectsRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.WorkspaceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesImportCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUploadCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiActivityLogsListMethod), TypeInfoPropertyName = "ApiActivityLogsListMethod2")] @@ -953,11 +958,11 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CollectionModeEnum?), TypeInfoPropertyName = "NullableCollectionModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ConjunctionEnum?), TypeInfoPropertyName = "NullableConjunctionEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ProjectImportStatusEnum?), TypeInfoPropertyName = "NullableProjectImportStatusEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum?), TypeInfoPropertyName = "NullableEstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OpEnum?), TypeInfoPropertyName = "NullableOpEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DataManagerFilterModeEnum?), TypeInfoPropertyName = "NullableDataManagerFilterModeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OrganizationRoleEnum?), TypeInfoPropertyName = "NullableOrganizationRoleEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EditionEnum?), TypeInfoPropertyName = "NullableEditionEnum2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum?), TypeInfoPropertyName = "NullableEstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.InterfaceMoveBlockerEnum?), TypeInfoPropertyName = "NullableInterfaceMoveBlockerEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.InterfaceMoveBlockingReasonEnum?), TypeInfoPropertyName = "NullableInterfaceMoveBlockingReasonEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.InterfaceMoveCodeEnum?), TypeInfoPropertyName = "NullableInterfaceMoveCodeEnum2")] @@ -966,6 +971,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.SegmentationEnum?), TypeInfoPropertyName = "NullableSegmentationEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf?), TypeInfoPropertyName = "NullableOneOfDoubleString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>?), TypeInfoPropertyName = "NullableOneOfStringIListString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?), TypeInfoPropertyName = "NullableLearningResourceUploadResponseStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OnboardingStateEnum?), TypeInfoPropertyName = "NullableOnboardingStateEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.TrialRoleEnum?), TypeInfoPropertyName = "NullableTrialRoleEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LseInterfaceDuplicateRequestModeEnum?), TypeInfoPropertyName = "NullableLseInterfaceDuplicateRequestModeEnum2")] @@ -1019,12 +1025,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable?), TypeInfoPropertyName = "NullableApiProjectsStatsMemberPerformanceSummaryRetrieveTable2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsTasksAssigneesDestroyType?), TypeInfoPropertyName = "NullableApiProjectsTasksAssigneesDestroyType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome?), TypeInfoPropertyName = "NullableApiProjectsSubsetTasksListAlignmentOutcome2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType?), TypeInfoPropertyName = "NullableApiPromptsCompatibleProjectsListProjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset?), TypeInfoPropertyName = "NullableApiPromptsVersionsInferenceRunsListProjectSubset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiTasksListFields?), TypeInfoPropertyName = "NullableApiTasksListFields2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsAwsCustomFunctionRetrieveResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsCustomFunctionRetrieveResponseStatus2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1046,6 +1046,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType?), TypeInfoPropertyName = "NullableApiPromptsCompatibleProjectsListProjectType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset?), TypeInfoPropertyName = "NullableApiPromptsVersionsInferenceRunsListProjectSubset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiTasksListFields?), TypeInfoPropertyName = "NullableApiTasksListFields2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsAwsCustomFunctionRetrieveResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsGcpCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>?), TypeInfoPropertyName = "NullableOneOfIListIListDoubleDictionaryStringIListIListDouble2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OneOf>?), TypeInfoPropertyName = "NullableOneOfDoubleDictionaryStringDouble2")] @@ -1401,6 +1407,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::LabelStudio.LabelStreamTaskDistributionEnum?) + || typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum) + + || typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?) + || typeToConvert == typeof(global::LabelStudio.LseInterfaceDuplicateRequestModeEnum) || typeToConvert == typeof(global::LabelStudio.LseInterfaceDuplicateRequestModeEnum?) @@ -1912,6 +1922,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::LabelStudio.JsonConverters.LabelStreamTaskDistributionEnumNullableJsonConverter(); } + if (typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum)) + { + return new global::LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?)) + { + return new global::LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::LabelStudio.LseInterfaceDuplicateRequestModeEnum)) { return new global::LabelStudio.JsonConverters.LseInterfaceDuplicateRequestModeEnumJsonConverter(); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index 41835b58..6c9b4467 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -538,2975 +538,2995 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::LabelStudio.CourseModule? Type125 { get; set; } + public global::LabelStudio.CourseExportPayload? Type125 { get; set; } /// /// /// - public global::LabelStudio.CourseOutline? Type126 { get; set; } + public global::LabelStudio.CourseImportResponse? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::LabelStudio.EstimatedDurationUnitEnum? Type127 { get; set; } /// /// /// - public global::LabelStudio.CourseOutlineModule? Type128 { get; set; } + public global::LabelStudio.CourseModule? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type129 { get; set; } + public global::LabelStudio.CourseOutline? Type129 { get; set; } /// /// /// - public global::LabelStudio.CourseOutlinePage? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::LabelStudio.CoursePageSaveResponse? Type131 { get; set; } + public global::LabelStudio.CourseOutlineModule? Type131 { get; set; } /// /// /// - public global::LabelStudio.CourseProgressImportResult? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::LabelStudio.CourseStructureOpRequest? Type133 { get; set; } + public global::LabelStudio.CourseOutlinePage? Type133 { get; set; } /// /// /// - public global::LabelStudio.OpEnum? Type134 { get; set; } + public global::LabelStudio.CoursePageSaveResponse? Type134 { get; set; } /// /// /// - public global::LabelStudio.CourseStructureOpResponse? Type135 { get; set; } + public global::LabelStudio.CourseProgressImportResult? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::LabelStudio.CourseStructureOpRequest? Type136 { get; set; } /// /// /// - public global::LabelStudio.CreateProjectFromTemplateRequestRequest? Type137 { get; set; } + public global::LabelStudio.OpEnum? Type137 { get; set; } /// /// /// - public global::LabelStudio.CustomFunctionCodeRequestRequest? Type138 { get; set; } + public global::LabelStudio.CourseStructureOpResponse? Type138 { get; set; } /// /// /// - public global::LabelStudio.DataManagerFilterModeEnum? Type139 { get; set; } + public global::System.Collections.Generic.IList? Type139 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementConfusionMatrix? Type140 { get; set; } + public global::LabelStudio.CreateProjectFromTemplateRequestRequest? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type141 { get; set; } + public global::LabelStudio.CustomFunctionCodeRequestRequest? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::LabelStudio.DataManagerFilterModeEnum? Type142 { get; set; } /// /// /// - public global::LabelStudio.DataQualityConfusionPair? Type143 { get; set; } + public global::LabelStudio.DataQualityAgreementConfusionMatrix? Type143 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementDimensions? Type144 { get; set; } + public global::System.Collections.Generic.IList>? Type144 { get; set; } /// /// /// - public global::LabelStudio.DataQualityAgreementDistribution? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorage? Type146 { get; set; } + public global::LabelStudio.DataQualityConfusionPair? Type146 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorageValidateRequest? Type147 { get; set; } + public global::LabelStudio.DataQualityAgreementDimensions? Type147 { get; set; } /// /// /// - public global::LabelStudio.DatabricksExportStorageWriteRequest? Type148 { get; set; } + public global::LabelStudio.DataQualityAgreementDistribution? Type148 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorage? Type149 { get; set; } + public global::LabelStudio.DatabricksExportStorage? Type149 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorageValidateRequest? Type150 { get; set; } + public global::LabelStudio.DatabricksExportStorageValidateRequest? Type150 { get; set; } /// /// /// - public global::LabelStudio.DatabricksImportStorageWriteRequest? Type151 { get; set; } + public global::LabelStudio.DatabricksExportStorageWriteRequest? Type151 { get; set; } /// /// /// - public global::LabelStudio.DefaultModelVersionNameResponse? Type152 { get; set; } + public global::LabelStudio.DatabricksImportStorage? Type152 { get; set; } /// /// /// - public global::LabelStudio.DefaultRole? Type153 { get; set; } + public global::LabelStudio.DatabricksImportStorageValidateRequest? Type153 { get; set; } /// /// /// - public global::LabelStudio.OrganizationRoleEnum? Type154 { get; set; } + public global::LabelStudio.DatabricksImportStorageWriteRequest? Type154 { get; set; } /// /// /// - public global::LabelStudio.Dimension? Type155 { get; set; } + public global::LabelStudio.DefaultModelVersionNameResponse? Type155 { get; set; } /// /// /// - public global::LabelStudio.DimensionCreateRequest? Type156 { get; set; } + public global::LabelStudio.DefaultRole? Type156 { get; set; } /// /// /// - public global::LabelStudio.DimensionList? Type157 { get; set; } + public global::LabelStudio.OrganizationRoleEnum? Type157 { get; set; } /// /// /// - public global::LabelStudio.DimensionRequest? Type158 { get; set; } + public global::LabelStudio.Dimension? Type158 { get; set; } /// /// /// - public global::LabelStudio.DuplicateLearningResourceRequest? Type159 { get; set; } + public global::LabelStudio.DimensionCreateRequest? Type159 { get; set; } /// /// /// - public global::LabelStudio.EditionEnum? Type160 { get; set; } + public global::LabelStudio.DimensionList? Type160 { get; set; } /// /// /// - public global::LabelStudio.EstimatedDurationUnitEnum? Type161 { get; set; } + public global::LabelStudio.DimensionRequest? Type161 { get; set; } /// /// /// - public global::LabelStudio.Export? Type162 { get; set; } + public global::LabelStudio.DuplicateLearningResourceRequest? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::LabelStudio.EditionEnum? Type163 { get; set; } /// /// /// - public global::LabelStudio.ExportConvertRequest? Type164 { get; set; } + public global::LabelStudio.Export? Type164 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::LabelStudio.FSMTransitionExecuteResponse? Type166 { get; set; } + public global::LabelStudio.ExportConvertRequest? Type166 { get; set; } /// /// /// - public global::LabelStudio.StateModel? Type167 { get; set; } + public global::LabelStudio.FSMTransitionExecuteRequestRequest? Type167 { get; set; } /// /// /// - public global::LabelStudio.FewShotExample? Type168 { get; set; } + public global::LabelStudio.FSMTransitionExecuteResponse? Type168 { get; set; } /// /// /// - public global::LabelStudio.FewShotExampleRequest? Type169 { get; set; } + public global::LabelStudio.StateModel? Type169 { get; set; } /// /// /// - public global::LabelStudio.FileUpload? Type170 { get; set; } + public global::LabelStudio.FewShotExample? Type170 { get; set; } /// /// /// - public global::LabelStudio.Filter? Type171 { get; set; } + public global::LabelStudio.FewShotExampleRequest? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::LabelStudio.FileUpload? Type172 { get; set; } /// /// /// - public global::LabelStudio.FilterGroup? Type173 { get; set; } + public global::LabelStudio.Filter? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::LabelStudio.FilteredLabelDistributionUnavailable? Type175 { get; set; } + public global::LabelStudio.FilterGroup? Type175 { get; set; } /// /// /// - public global::LabelStudio.FlexActiveBlock? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::LabelStudio.FilteredLabelDistributionUnavailable? Type177 { get; set; } /// /// /// - public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type178 { get; set; } + public global::LabelStudio.FlexActiveBlock? Type178 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorage? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorageValidateRequest? Type180 { get; set; } + public global::LabelStudio.GCPCustomFunctionUpdateRequest? Type180 { get; set; } /// /// /// - public global::LabelStudio.GCSExportStorageWriteRequest? Type181 { get; set; } + public global::LabelStudio.GCSExportStorage? Type181 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorage? Type182 { get; set; } + public global::LabelStudio.GCSExportStorageValidateRequest? Type182 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorageValidateRequest? Type183 { get; set; } + public global::LabelStudio.GCSExportStorageWriteRequest? Type183 { get; set; } /// /// /// - public global::LabelStudio.GCSImportStorageWriteRequest? Type184 { get; set; } + public global::LabelStudio.GCSImportStorage? Type184 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorage? Type185 { get; set; } + public global::LabelStudio.GCSImportStorageValidateRequest? Type185 { get; set; } /// /// /// - public global::LabelStudio.GCSSAExportStorageRequest? Type186 { get; set; } + public global::LabelStudio.GCSImportStorageWriteRequest? Type186 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorage? Type187 { get; set; } + public global::LabelStudio.GCSSAExportStorage? Type187 { get; set; } /// /// /// - public global::LabelStudio.GCSSAImportStorageRequest? Type188 { get; set; } + public global::LabelStudio.GCSSAExportStorageRequest? Type188 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorage? Type189 { get; set; } + public global::LabelStudio.GCSSAImportStorage? Type189 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFExportStorageRequest? Type190 { get; set; } + public global::LabelStudio.GCSSAImportStorageRequest? Type190 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorage? Type191 { get; set; } + public global::LabelStudio.GCSWIFExportStorage? Type191 { get; set; } /// /// /// - public global::LabelStudio.GCSWIFImportStorageRequest? Type192 { get; set; } + public global::LabelStudio.GCSWIFExportStorageRequest? Type192 { get; set; } /// /// /// - public global::LabelStudio.Hotkeys? Type193 { get; set; } + public global::LabelStudio.GCSWIFImportStorage? Type193 { get; set; } /// /// /// - public global::LabelStudio.ImportApiRequest? Type194 { get; set; } + public global::LabelStudio.GCSWIFImportStorageRequest? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::LabelStudio.Hotkeys? Type195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type196 { get; set; } + public global::LabelStudio.ImportApiRequest? Type196 { get; set; } /// /// /// - public global::LabelStudio.PredictionRequest? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::LabelStudio.InferenceRunCostEstimate? Type198 { get; set; } + public global::System.Collections.Generic.IList? Type198 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveBlockerEnum? Type199 { get; set; } + public global::LabelStudio.PredictionRequest? Type199 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveBlockingReasonEnum? Type200 { get; set; } + public global::LabelStudio.InferenceRunCostEstimate? Type200 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveCodeEnum? Type201 { get; set; } + public global::LabelStudio.InterfaceMoveBlockerEnum? Type201 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveNoticeEnum? Type202 { get; set; } + public global::LabelStudio.InterfaceMoveBlockingReasonEnum? Type202 { get; set; } /// /// /// - public global::LabelStudio.InterfaceMoveOutcomeEnum? Type203 { get; set; } + public global::LabelStudio.InterfaceMoveCodeEnum? Type203 { get; set; } /// /// /// - public global::LabelStudio.JobDetail? Type204 { get; set; } + public global::LabelStudio.InterfaceMoveNoticeEnum? Type204 { get; set; } /// /// /// - public global::LabelStudio.JobException? Type205 { get; set; } + public global::LabelStudio.InterfaceMoveOutcomeEnum? Type205 { get; set; } /// /// /// - public global::LabelStudio.JobListEntry? Type206 { get; set; } + public global::LabelStudio.JobDetail? Type206 { get; set; } /// /// /// - public global::LabelStudio.JobQuota? Type207 { get; set; } + public global::LabelStudio.JobException? Type207 { get; set; } /// /// /// - public global::LabelStudio.JobsListResponse? Type208 { get; set; } + public global::LabelStudio.JobListEntry? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::LabelStudio.JobQuota? Type209 { get; set; } /// /// /// - public global::LabelStudio.JobsSummary? Type210 { get; set; } + public global::LabelStudio.JobsListResponse? Type210 { get; set; } /// /// /// - public global::LabelStudio.KPIDetailResponse? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectSegment? Type212 { get; set; } + public global::LabelStudio.JobsSummary? Type212 { get; set; } /// /// /// - public global::LabelStudio.KPIUserSegment? Type213 { get; set; } + public global::LabelStudio.KPIDetailResponse? Type213 { get; set; } /// /// /// - public global::LabelStudio.KPIUserProjectSegment? Type214 { get; set; } + public global::LabelStudio.KPIProjectSegment? Type214 { get; set; } /// /// /// - public global::LabelStudio.KPIMatrixSegment? Type215 { get; set; } + public global::LabelStudio.KPIUserSegment? Type215 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectMatrixSegment? Type216 { get; set; } + public global::LabelStudio.KPIUserProjectSegment? Type216 { get; set; } /// /// /// - public global::LabelStudio.SegmentationEnum? Type217 { get; set; } + public global::LabelStudio.KPIMatrixSegment? Type217 { get; set; } /// /// /// - public global::LabelStudio.KPITimeSegment? Type218 { get; set; } + public global::LabelStudio.KPIProjectMatrixSegment? Type218 { get; set; } /// /// /// - public global::LabelStudio.KPIValue? Type219 { get; set; } + public global::LabelStudio.SegmentationEnum? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::LabelStudio.KPITimeSegment? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::LabelStudio.KPIValue? Type221 { get; set; } /// /// /// - public global::LabelStudio.KPIUserInfo? Type222 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } /// /// /// - public global::LabelStudio.KPIMetadata? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::LabelStudio.KPIProjectInfo? Type224 { get; set; } + public global::LabelStudio.KPIUserInfo? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::LabelStudio.KPIMetadata? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type226 { get; set; } + public global::LabelStudio.KPIProjectInfo? Type226 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::LabelStudio.KPIUserProjectInfo? Type228 { get; set; } + public global::System.Collections.Generic.IList?>? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::LabelStudio.OneOf? Type229 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenBlacklistRequest? Type230 { get; set; } + public global::LabelStudio.KPIUserProjectInfo? Type230 { get; set; } /// /// /// - public global::LabelStudio.LSAPITokenRotateRequest? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenCreate? Type232 { get; set; } + public global::LabelStudio.LSAPITokenBlacklistRequest? Type232 { get; set; } /// /// /// - public global::LabelStudio.LSEAPITokenList? Type233 { get; set; } + public global::LabelStudio.LSAPITokenRotateRequest? Type233 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettings? Type234 { get; set; } + public global::LabelStudio.LSEAPITokenCreate? Type234 { get; set; } /// /// /// - public global::LabelStudio.LSEJWTSettingsRequest? Type235 { get; set; } + public global::LabelStudio.LSEAPITokenList? Type235 { get; set; } /// /// /// - public global::LabelStudio.LSEKeyIndicatorValue? Type236 { get; set; } + public global::LabelStudio.LSEJWTSettings? Type236 { get; set; } /// /// /// - public global::LabelStudio.Label? Type237 { get; set; } + public global::LabelStudio.LSEJWTSettingsRequest? Type237 { get; set; } /// /// /// - public global::LabelStudio.LabelBulkUpdateRequest? Type238 { get; set; } + public global::LabelStudio.LSEKeyIndicatorValue? Type238 { get; set; } /// /// /// - public global::LabelStudio.LabelBulkUpdateResponse? Type239 { get; set; } + public global::LabelStudio.Label? Type239 { get; set; } /// /// /// - public global::LabelStudio.LabelCreate? Type240 { get; set; } + public global::LabelStudio.LabelBulkUpdateRequest? Type240 { get; set; } /// /// /// - public global::LabelStudio.LabelCreateRequest? Type241 { get; set; } + public global::LabelStudio.LabelBulkUpdateResponse? Type241 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsResponse? Type242 { get; set; } + public global::LabelStudio.LabelCreate? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::LabelStudio.LabelCreateRequest? Type243 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsRow? Type244 { get; set; } + public global::LabelStudio.LabelDistributionCountsResponse? Type244 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionCountsTotals? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureDimension? Type246 { get; set; } + public global::LabelStudio.LabelDistributionCountsRow? Type246 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionStructureResponse? Type247 { get; set; } + public global::LabelStudio.LabelDistributionCountsTotals? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::LabelStudio.LabelDistributionStructureDimension? Type248 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionValidationError? Type249 { get; set; } + public global::LabelStudio.LabelDistributionStructureResponse? Type249 { get; set; } /// /// /// - public global::LabelStudio.LabelDistributionValidationErrors? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type251 { get; set; } + public global::LabelStudio.LabelDistributionValidationError? Type251 { get; set; } /// /// /// - public global::LabelStudio.LabelLink? Type252 { get; set; } + public global::LabelStudio.LabelDistributionValidationErrors? Type252 { get; set; } /// /// /// - public global::LabelStudio.LabelLinkRequest? Type253 { get; set; } + public global::LabelStudio.OneOf>? Type253 { get; set; } /// /// /// - public global::LabelStudio.LearningProgressResponse? Type254 { get; set; } + public global::LabelStudio.LabelLink? Type254 { get; set; } /// /// /// - public global::LabelStudio.LearningProgressUpdateRequest? Type255 { get; set; } + public global::LabelStudio.LabelLinkRequest? Type255 { get; set; } /// /// /// - public global::LabelStudio.LearningResource? Type256 { get; set; } + public global::LabelStudio.LearningProgressResponse? Type256 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceAssignmentSummary? Type257 { get; set; } + public global::LabelStudio.LearningProgressUpdateRequest? Type257 { get; set; } /// /// /// - public global::LabelStudio.UserLearningProgress? Type258 { get; set; } + public global::LabelStudio.LearningResource? Type258 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCountsItem? Type259 { get; set; } + public global::LabelStudio.LearningResourceAssignmentSummary? Type259 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCountsResponse? Type260 { get; set; } + public global::LabelStudio.UserLearningProgress? Type260 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type261 { get; set; } + public global::LabelStudio.LearningResourceCountsItem? Type261 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCreate? Type262 { get; set; } + public global::LabelStudio.LearningResourceCountsResponse? Type262 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceCreateRequest? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceDetail? Type264 { get; set; } + public global::LabelStudio.LearningResourceCreate? Type264 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceList? Type265 { get; set; } + public global::LabelStudio.LearningResourceCreateRequest? Type265 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceRequest? Type266 { get; set; } + public global::LabelStudio.LearningResourceDetail? Type266 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceUpdate? Type267 { get; set; } + public global::LabelStudio.LearningResourceList? Type267 { get; set; } /// /// /// - public global::LabelStudio.LearningResourceUploadResponse? Type268 { get; set; } + public global::LabelStudio.LearningResourceRequest? Type268 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorage? Type269 { get; set; } + public global::LabelStudio.LearningResourceUpdate? Type269 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorageValidateRequest? Type270 { get; set; } + public global::LabelStudio.LearningResourceUploadResponse? Type270 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesExportStorageWriteRequest? Type271 { get; set; } + public global::LabelStudio.LearningResourceUploadResponseStatusEnum? Type271 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorage? Type272 { get; set; } + public global::LabelStudio.LocalFilesExportStorage? Type272 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorageValidateRequest? Type273 { get; set; } + public global::LabelStudio.LocalFilesExportStorageValidateRequest? Type273 { get; set; } /// /// /// - public global::LabelStudio.LocalFilesImportStorageWriteRequest? Type274 { get; set; } + public global::LabelStudio.LocalFilesExportStorageWriteRequest? Type274 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptions? Type275 { get; set; } + public global::LabelStudio.LocalFilesImportStorage? Type275 { get; set; } /// /// /// - public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type276 { get; set; } + public global::LabelStudio.LocalFilesImportStorageValidateRequest? Type276 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreate? Type277 { get; set; } + public global::LabelStudio.LocalFilesImportStorageWriteRequest? Type277 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptions? Type278 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptions? Type278 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptions? Type279 { get; set; } + public global::LabelStudio.LseAnnotationFilterOptionsRequest? Type279 { get; set; } /// /// /// - public global::LabelStudio.LseExportCreateRequest? Type280 { get; set; } + public global::LabelStudio.LseExportCreate? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::LabelStudio.SerializationOptions? Type281 { get; set; } /// /// /// - public global::LabelStudio.UserSimpleRequest? Type282 { get; set; } + public global::LabelStudio.LseTaskFilterOptions? Type282 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionsRequest? Type283 { get; set; } + public global::LabelStudio.LseExportCreateRequest? Type283 { get; set; } /// /// /// - public global::LabelStudio.LseTaskFilterOptionsRequest? Type284 { get; set; } + public global::System.Collections.Generic.IList? Type284 { get; set; } /// /// /// - public global::LabelStudio.LseFields? Type285 { get; set; } + public global::LabelStudio.UserSimpleRequest? Type285 { get; set; } /// /// /// - public global::LabelStudio.OnboardingStateEnum? Type286 { get; set; } + public global::LabelStudio.SerializationOptionsRequest? Type286 { get; set; } /// /// /// - public global::LabelStudio.TrialRoleEnum? Type287 { get; set; } + public global::LabelStudio.LseTaskFilterOptionsRequest? Type287 { get; set; } /// /// /// - public global::LabelStudio.LseFieldsRequest? Type288 { get; set; } + public global::LabelStudio.LseFields? Type288 { get; set; } /// /// /// - public global::LabelStudio.LseInterface? Type289 { get; set; } + public global::LabelStudio.OnboardingStateEnum? Type289 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceAppendVersionRequest? Type290 { get; set; } + public global::LabelStudio.TrialRoleEnum? Type290 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceAppendVersionsRequest? Type291 { get; set; } + public global::LabelStudio.LseFieldsRequest? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::LabelStudio.LseInterface? Type292 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceDuplicateRequestModeEnum? Type293 { get; set; } + public global::LabelStudio.LseInterfaceAppendVersionRequest? Type293 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceDuplicateRequestRequest? Type294 { get; set; } + public global::LabelStudio.LseInterfaceAppendVersionsRequest? Type294 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceList? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type295 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMovePlan? Type296 { get; set; } + public global::LabelStudio.LseInterfaceDuplicateRequestModeEnum? Type296 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type297 { get; set; } + public global::LabelStudio.LseInterfaceDuplicateRequestRequest? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::LabelStudio.LseInterfaceList? Type298 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveWorkspace? Type299 { get; set; } + public global::LabelStudio.LseInterfaceMovePlan? Type299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type300 { get; set; } + public global::System.Collections.Generic.IList? Type300 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveWorkspaceGroup? Type301 { get; set; } + public global::System.Collections.Generic.IList? Type301 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveProject? Type302 { get; set; } + public global::LabelStudio.LseInterfaceMoveWorkspace? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::System.Collections.Generic.IList? Type303 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceMoveRequestRequest? Type304 { get; set; } + public global::LabelStudio.LseInterfaceMoveWorkspaceGroup? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::LabelStudio.LseInterfaceMoveProject? Type305 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceRequest? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceVersionDescriptionRequest? Type307 { get; set; } + public global::LabelStudio.LseInterfaceMoveRequestRequest? Type307 { get; set; } /// /// /// - public global::LabelStudio.LseInterfaceVersionIdRequest? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::LabelStudio.LseOrganization? Type309 { get; set; } + public global::LabelStudio.LseInterfaceRequest? Type309 { get; set; } /// /// /// - public global::LabelStudio.OrganizationBilling? Type310 { get; set; } + public global::LabelStudio.LseInterfaceVersionDescriptionRequest? Type310 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberList? Type311 { get; set; } + public global::LabelStudio.LseInterfaceVersionIdRequest? Type311 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type312 { get; set; } + public global::LabelStudio.LseOrganization? Type312 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type313 { get; set; } + public global::LabelStudio.OrganizationBilling? Type313 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type314 { get; set; } + public global::LabelStudio.LseOrganizationMemberList? Type314 { get; set; } /// /// /// - public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::LabelStudio.RoleSourceEnum? Type316 { get; set; } + public global::LabelStudio.LseOrganizationMemberListContributedToProject? Type316 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type317 { get; set; } + public global::System.Collections.Generic.IList? Type317 { get; set; } /// /// /// - public global::LabelStudio.MemberSkill? Type318 { get; set; } + public global::LabelStudio.LseOrganizationMemberListCreatedProject? Type318 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type319 { get; set; } + public global::LabelStudio.RoleSourceEnum? Type319 { get; set; } /// /// /// - public global::LabelStudio.SimpleOrganizationMemberTag? Type320 { get; set; } + public global::System.Collections.Generic.IList? Type320 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberList? Type321 { get; set; } + public global::LabelStudio.MemberSkill? Type321 { get; set; } /// /// /// - public global::LabelStudio.LseProject? Type322 { get; set; } + public global::System.Collections.Generic.IList? Type322 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaults? Type323 { get; set; } + public global::LabelStudio.SimpleOrganizationMemberTag? Type323 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaultsExplore? Type324 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberList? Type324 { get; set; } /// /// /// - public global::LabelStudio.LseProjectDmColumnDefaultsLabeling? Type325 { get; set; } + public global::LabelStudio.LseProject? Type325 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCounts? Type326 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaults? Type326 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreate? Type327 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaultsExplore? Type327 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaults? Type328 { get; set; } + public global::LabelStudio.LseProjectDmColumnDefaultsLabeling? Type328 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaultsExplore? Type329 { get; set; } + public global::LabelStudio.LseProjectCounts? Type329 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateDmColumnDefaultsLabeling? Type330 { get; set; } + public global::LabelStudio.LseProjectCreate? Type330 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequest? Type331 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaults? Type331 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type332 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaultsExplore? Type332 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaults? Type333 { get; set; } + public global::LabelStudio.LseProjectCreateDmColumnDefaultsLabeling? Type333 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsExplore? Type334 { get; set; } + public global::LabelStudio.LseProjectCreateRequest? Type334 { get; set; } /// /// /// - public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsLabeling? Type335 { get; set; } + public global::System.Collections.Generic.Dictionary? Type335 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParams? Type336 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaults? Type336 { get; set; } /// /// /// - public global::LabelStudio.LseProjectParamsRequest? Type337 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsExplore? Type337 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponse? Type338 { get; set; } + public global::LabelStudio.LseProjectCreateRequestDmColumnDefaultsLabeling? Type338 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaults? Type339 { get; set; } + public global::LabelStudio.LseProjectParams? Type339 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaultsExplore? Type340 { get; set; } + public global::LabelStudio.LseProjectParamsRequest? Type340 { get; set; } /// /// /// - public global::LabelStudio.LseProjectResponseDmColumnDefaultsLabeling? Type341 { get; set; } + public global::LabelStudio.LseProjectResponse? Type341 { get; set; } /// /// /// - public global::LabelStudio.LseProjectStateResponse? Type342 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaults? Type342 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorage? Type343 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaultsExplore? Type343 { get; set; } /// /// /// - public global::LabelStudio.LseS3ExportStorageRequest? Type344 { get; set; } + public global::LabelStudio.LseProjectResponseDmColumnDefaultsLabeling? Type344 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorage? Type345 { get; set; } + public global::LabelStudio.LseProjectStateResponse? Type345 { get; set; } /// /// /// - public global::LabelStudio.LseS3ImportStorageRequest? Type346 { get; set; } + public global::LabelStudio.LseS3ExportStorage? Type346 { get; set; } /// /// /// - public global::LabelStudio.LseTask? Type347 { get; set; } + public global::LabelStudio.LseS3ExportStorageRequest? Type347 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type348 { get; set; } + public global::LabelStudio.LseS3ImportStorage? Type348 { get; set; } /// /// /// - public global::LabelStudio.LseTaskDraft? Type349 { get; set; } + public global::LabelStudio.LseS3ImportStorageRequest? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::LabelStudio.LseTask? Type350 { get; set; } /// /// /// - public global::LabelStudio.LseTaskPrediction? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::LabelStudio.LseTaskRequest? Type352 { get; set; } + public global::LabelStudio.LseTaskDraft? Type352 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotators? Type353 { get; set; } + public global::System.Collections.Generic.IList? Type353 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type354 { get; set; } + public global::LabelStudio.LseTaskPrediction? Type354 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type355 { get; set; } + public global::LabelStudio.LseTaskRequest? Type355 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type356 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotators? Type356 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewers? Type358 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsDraft? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type359 { get; set; } + public global::System.Collections.Generic.IList? Type359 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type360 { get; set; } + public global::LabelStudio.LseTaskSerializerForAnnotatorsPrediction? Type360 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type361 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewers? Type361 { get; set; } /// /// /// - public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type362 { get; set; } + public global::System.Collections.Generic.IList? Type362 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type363 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersDraft? Type363 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type364 { get; set; } + public global::System.Collections.Generic.IList? Type364 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembership? Type365 { get; set; } + public global::LabelStudio.LseTaskSerializerForReviewersPrediction? Type365 { get; set; } /// /// /// - public global::LabelStudio.LseUserAPI? Type366 { get; set; } + public global::System.Collections.Generic.Dictionary? Type366 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type367 { get; set; } + public global::System.Collections.Generic.IList? Type367 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type368 { get; set; } + public global::LabelStudio.OrganizationMembership? Type368 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type369 { get; set; } + public global::LabelStudio.LseUserAPI? Type369 { get; set; } /// /// /// - public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type370 { get; set; } + public global::System.Collections.Generic.IList? Type370 { get; set; } /// /// /// - public global::LabelStudio.LseUserRequest? Type371 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListContributedToProject? Type371 { get; set; } /// /// /// - public global::LabelStudio.MLBackend? Type372 { get; set; } + public global::System.Collections.Generic.IList? Type372 { get; set; } /// /// /// - public global::LabelStudio.StateEnum? Type373 { get; set; } + public global::LabelStudio.LseUserOrganizationMemberListCreatedProject? Type373 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequest? Type374 { get; set; } + public global::LabelStudio.LseUserRequest? Type374 { get; set; } /// /// /// - public global::LabelStudio.MLBackendRequestRequest? Type375 { get; set; } + public global::LabelStudio.MLBackend? Type375 { get; set; } /// /// /// - public global::LabelStudio.MLBackendTrainRequestRequest? Type376 { get; set; } + public global::LabelStudio.StateEnum? Type376 { get; set; } /// /// /// - public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type377 { get; set; } + public global::LabelStudio.MLBackendRequest? Type377 { get; set; } /// /// /// - public global::LabelStudio.MappingStatusEnum? Type378 { get; set; } + public global::LabelStudio.MLBackendRequestRequest? Type378 { get; set; } /// /// /// - public global::LabelStudio.MaybeExpandedComment? Type379 { get; set; } + public global::LabelStudio.MLBackendTrainRequestRequest? Type379 { get; set; } /// /// /// - public global::LabelStudio.MemberSkillStatusEnum? Type380 { get; set; } + public global::LabelStudio.MLInteractiveAnnotatingRequestRequest? Type380 { get; set; } /// /// /// - public global::LabelStudio.MetricParam? Type381 { get; set; } + public global::LabelStudio.MappingStatusEnum? Type381 { get; set; } /// /// /// - public global::LabelStudio.MetricParamUpdateRequest? Type382 { get; set; } + public global::LabelStudio.MaybeExpandedComment? Type382 { get; set; } /// /// /// - public global::LabelStudio.ModelInterface? Type383 { get; set; } + public global::LabelStudio.MemberSkillStatusEnum? Type383 { get; set; } /// /// /// - public global::LabelStudio.SkillNameEnum? Type384 { get; set; } + public global::LabelStudio.MetricParam? Type384 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceRequest? Type385 { get; set; } + public global::LabelStudio.MetricParamUpdateRequest? Type385 { get; set; } /// /// /// - public global::LabelStudio.ModelInterfaceSerializerGET? Type386 { get; set; } + public global::LabelStudio.ModelInterface? Type386 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type387 { get; set; } + public global::LabelStudio.SkillNameEnum? Type387 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnection? Type388 { get; set; } + public global::LabelStudio.ModelInterfaceRequest? Type388 { get; set; } /// /// /// - public global::LabelStudio.ProviderEnum? Type389 { get; set; } + public global::LabelStudio.ModelInterfaceSerializerGET? Type389 { get; set; } /// /// /// - public global::LabelStudio.ScopeEnum? Type390 { get; set; } + public global::System.Collections.Generic.IList? Type390 { get; set; } /// /// /// - public global::LabelStudio.ModelProviderConnectionRequest? Type391 { get; set; } + public global::LabelStudio.ModelProviderConnection? Type391 { get; set; } /// /// /// - public global::LabelStudio.ModelRun? Type392 { get; set; } + public global::LabelStudio.ProviderEnum? Type392 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetEnum? Type393 { get; set; } + public global::LabelStudio.ScopeEnum? Type393 { get; set; } /// /// /// - public global::LabelStudio.ModelRunStatusEnum? Type394 { get; set; } + public global::LabelStudio.ModelProviderConnectionRequest? Type394 { get; set; } /// /// /// - public global::LabelStudio.ModelRunRequestRequest? Type395 { get; set; } + public global::LabelStudio.ModelRun? Type395 { get; set; } /// /// /// - public global::LabelStudio.OperatorEnum? Type396 { get; set; } + public global::LabelStudio.ProjectSubsetEnum? Type396 { get; set; } /// /// /// - public global::LabelStudio.OrganizationId? Type397 { get; set; } + public global::LabelStudio.ModelRunStatusEnum? Type397 { get; set; } /// /// /// - public global::LabelStudio.OrganizationInvite? Type398 { get; set; } + public global::LabelStudio.ModelRunRequestRequest? Type398 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMember? Type399 { get; set; } + public global::LabelStudio.OperatorEnum? Type399 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type400 { get; set; } + public global::LabelStudio.OrganizationId? Type400 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberContributedToProject? Type401 { get; set; } + public global::LabelStudio.OrganizationInvite? Type401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type402 { get; set; } + public global::LabelStudio.OrganizationMember? Type402 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberCreatedProject? Type403 { get; set; } + public global::System.Collections.Generic.IList? Type403 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberFilterRequestRequest? Type404 { get; set; } + public global::LabelStudio.OrganizationMemberContributedToProject? Type404 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberFilterSchema? Type405 { get; set; } + public global::System.Collections.Generic.IList? Type405 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipOption? Type406 { get; set; } + public global::LabelStudio.OrganizationMemberCreatedProject? Type406 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipOptionKindEnum? Type407 { get; set; } + public global::LabelStudio.OrganizationMemberFilterRequestRequest? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type408 { get; set; } + public global::LabelStudio.OrganizationMemberFilterSchema? Type408 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipProjectOption? Type409 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipOption? Type409 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberMembershipProjectOptionKindEnum? Type410 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipOptionKindEnum? Type410 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberSkillsOption? Type411 { get; set; } + public global::System.Collections.Generic.IList? Type411 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTag? Type412 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipProjectOption? Type412 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type413 { get; set; } + public global::LabelStudio.OrganizationMemberMembershipProjectOptionKindEnum? Type413 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type414 { get; set; } + public global::LabelStudio.OrganizationMemberSkillsOption? Type414 { get; set; } /// /// /// - public byte[]? Type415 { get; set; } + public global::LabelStudio.OrganizationMemberTag? Type415 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatus? Type416 { get; set; } + public global::LabelStudio.OrganizationMemberTagBulkCreateRequest? Type416 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type417 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportCreateRequest? Type417 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMemberTagRequest? Type418 { get; set; } + public byte[]? Type418 { get; set; } /// /// /// - public global::LabelStudio.OrganizationMembershipRequest? Type419 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatus? Type419 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermission? Type420 { get; set; } + public global::LabelStudio.OrganizationMemberTagImportStatusStatusEnum? Type420 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type421 { get; set; } + public global::LabelStudio.OrganizationMemberTagRequest? Type421 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRoleEnum? Type422 { get; set; } + public global::LabelStudio.OrganizationMembershipRequest? Type422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type423 { get; set; } + public global::LabelStudio.OrganizationPermission? Type423 { get; set; } /// /// /// - public global::LabelStudio.OrganizationPermissionRequest? Type424 { get; set; } + public global::System.Collections.Generic.IList? Type424 { get; set; } /// /// /// - public global::LabelStudio.OrganizationRoleAssignment? Type425 { get; set; } + public global::LabelStudio.OrganizationPermissionRoleEnum? Type425 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAllRolesProjectListList? Type426 { get; set; } + public global::System.Collections.Generic.IList? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::LabelStudio.OrganizationPermissionRequest? Type427 { get; set; } /// /// /// - public global::LabelStudio.PaginatedAnnotationHistoryList? Type428 { get; set; } + public global::LabelStudio.OrganizationRoleAssignment? Type428 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type429 { get; set; } + public global::LabelStudio.PaginatedAllRolesProjectListList? Type429 { get; set; } /// /// /// - public global::LabelStudio.PaginatedCertificateList? Type430 { get; set; } + public global::System.Collections.Generic.IList? Type430 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type431 { get; set; } + public global::LabelStudio.PaginatedAnnotationHistoryList? Type431 { get; set; } /// /// /// - public global::LabelStudio.PaginatedCourseModuleList? Type432 { get; set; } + public global::System.Collections.Generic.IList? Type432 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelCreateList? Type433 { get; set; } + public global::LabelStudio.PaginatedCertificateList? Type433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type434 { get; set; } + public global::System.Collections.Generic.IList? Type434 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelLinkList? Type435 { get; set; } + public global::LabelStudio.PaginatedCourseModuleList? Type435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type436 { get; set; } + public global::LabelStudio.PaginatedLabelCreateList? Type436 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLabelList? Type437 { get; set; } + public global::System.Collections.Generic.IList? Type437 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type438 { get; set; } + public global::LabelStudio.PaginatedLabelLinkList? Type438 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLearningResourceListList? Type439 { get; set; } + public global::System.Collections.Generic.IList? Type439 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type440 { get; set; } + public global::LabelStudio.PaginatedLabelList? Type440 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseInterfaceListList? Type441 { get; set; } + public global::System.Collections.Generic.IList? Type441 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type442 { get; set; } + public global::LabelStudio.PaginatedLearningResourceListList? Type442 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type443 { get; set; } + public global::System.Collections.Generic.IList? Type443 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type444 { get; set; } + public global::LabelStudio.PaginatedLseInterfaceListList? Type444 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseProjectCountsList? Type445 { get; set; } + public global::System.Collections.Generic.IList? Type445 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type446 { get; set; } + public global::LabelStudio.PaginatedLseOrganizationMemberListList? Type446 { get; set; } /// /// /// - public global::LabelStudio.PaginatedLseUserList? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type448 { get; set; } + public global::LabelStudio.PaginatedLseProjectCountsList? Type448 { get; set; } /// /// /// - public global::LabelStudio.PaginatedModelInterfaceSerializerGETList? Type449 { get; set; } + public global::System.Collections.Generic.IList? Type449 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type450 { get; set; } + public global::LabelStudio.PaginatedLseUserList? Type450 { get; set; } /// /// /// - public global::LabelStudio.PaginatedOrganizationMemberTagList? Type451 { get; set; } + public global::System.Collections.Generic.IList? Type451 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type452 { get; set; } + public global::LabelStudio.PaginatedModelInterfaceSerializerGETList? Type452 { get; set; } /// /// /// - public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type453 { get; set; } + public global::System.Collections.Generic.IList? Type453 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type454 { get; set; } + public global::LabelStudio.PaginatedOrganizationMemberTagList? Type454 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectMember? Type455 { get; set; } + public global::System.Collections.Generic.IList? Type455 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectImportListList? Type456 { get; set; } + public global::LabelStudio.PaginatedPaginatedProjectMemberList? Type456 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type457 { get; set; } + public global::System.Collections.Generic.IList? Type457 { get; set; } /// /// /// - public global::LabelStudio.ProjectImportList? Type458 { get; set; } + public global::LabelStudio.PaginatedProjectMember? Type458 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectReimportListList? Type459 { get; set; } + public global::LabelStudio.PaginatedProjectImportListList? Type459 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimportList? Type461 { get; set; } + public global::LabelStudio.ProjectImportList? Type461 { get; set; } /// /// /// - public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type462 { get; set; } + public global::LabelStudio.PaginatedProjectReimportListList? Type462 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type463 { get; set; } + public global::System.Collections.Generic.IList? Type463 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTasksResponse? Type464 { get; set; } + public global::LabelStudio.ProjectReimportList? Type464 { get; set; } /// /// /// - public global::LabelStudio.PaginatedRoleBasedTaskList? Type465 { get; set; } + public global::LabelStudio.PaginatedProjectSubsetTasksResponseList? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::System.Collections.Generic.IList? Type466 { get; set; } /// /// /// - public global::LabelStudio.RoleBasedTask? Type467 { get; set; } + public global::LabelStudio.ProjectSubsetTasksResponse? Type467 { get; set; } /// /// /// - public global::LabelStudio.PaginatedSeatReportList? Type468 { get; set; } + public global::LabelStudio.PaginatedRoleBasedTaskList? Type468 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::LabelStudio.SeatReport? Type470 { get; set; } + public global::LabelStudio.RoleBasedTask? Type470 { get; set; } /// /// /// - public global::LabelStudio.PaginatedStateModelList? Type471 { get; set; } + public global::LabelStudio.PaginatedSeatReportList? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::System.Collections.Generic.IList? Type472 { get; set; } /// /// /// - public global::LabelStudio.PaginatedUserLearningProgressListList? Type473 { get; set; } + public global::LabelStudio.SeatReport? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type474 { get; set; } + public global::LabelStudio.PaginatedStateModelList? Type474 { get; set; } /// /// /// - public global::LabelStudio.UserLearningProgressList? Type475 { get; set; } + public global::System.Collections.Generic.IList? Type475 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnalyticsViewRequest? Type476 { get; set; } + public global::LabelStudio.PaginatedUserLearningProgressListList? Type476 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationRequest? Type477 { get; set; } + public global::System.Collections.Generic.IList? Type477 { get; set; } /// /// /// - public global::LabelStudio.PatchedAnnotationReviewRequest? Type478 { get; set; } + public global::LabelStudio.UserLearningProgressList? Type478 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest? Type479 { get; set; } + public global::LabelStudio.PatchedAnalyticsViewRequest? Type479 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest? Type480 { get; set; } + public global::LabelStudio.PatchedAnnotationRequest? Type480 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type481 { get; set; } + public global::LabelStudio.PatchedAnnotationReviewRequest? Type481 { get; set; } /// /// /// - public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type482 { get; set; } + public global::LabelStudio.PatchedAzureBlobExportStorageWriteRequest? Type482 { get; set; } /// /// /// - public global::LabelStudio.PatchedBlueprintUpdateRequest? Type483 { get; set; } + public global::LabelStudio.PatchedAzureBlobImportStorageWriteRequest? Type483 { get; set; } /// /// /// - public global::LabelStudio.PatchedCommentRequest? Type484 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalExportStorageRequest? Type484 { get; set; } /// /// /// - public global::LabelStudio.PatchedCoursePageUpdateRequest? Type485 { get; set; } + public global::LabelStudio.PatchedAzureServicePrincipalImportStorageRequest? Type485 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksExportStorageWriteRequest? Type486 { get; set; } + public global::LabelStudio.PatchedBlueprintUpdateRequest? Type486 { get; set; } /// /// /// - public global::LabelStudio.PatchedDatabricksImportStorageWriteRequest? Type487 { get; set; } + public global::LabelStudio.PatchedCommentRequest? Type487 { get; set; } /// /// /// - public global::LabelStudio.PatchedDefaultRoleRequest? Type488 { get; set; } + public global::LabelStudio.PatchedCoursePageUpdateRequest? Type488 { get; set; } /// /// /// - public global::LabelStudio.PatchedDimensionRequest? Type489 { get; set; } + public global::LabelStudio.PatchedDatabricksExportStorageWriteRequest? Type489 { get; set; } /// /// /// - public global::LabelStudio.PatchedFewShotExampleRequest? Type490 { get; set; } + public global::LabelStudio.PatchedDatabricksImportStorageWriteRequest? Type490 { get; set; } /// /// /// - public global::LabelStudio.PatchedFileUploadRequest? Type491 { get; set; } + public global::LabelStudio.PatchedDefaultRoleRequest? Type491 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSExportStorageWriteRequest? Type492 { get; set; } + public global::LabelStudio.PatchedDimensionRequest? Type492 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSImportStorageWriteRequest? Type493 { get; set; } + public global::LabelStudio.PatchedFewShotExampleRequest? Type493 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type494 { get; set; } + public global::LabelStudio.PatchedFileUploadRequest? Type494 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type495 { get; set; } + public global::LabelStudio.PatchedGCSExportStorageWriteRequest? Type495 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type496 { get; set; } + public global::LabelStudio.PatchedGCSImportStorageWriteRequest? Type496 { get; set; } /// /// /// - public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type497 { get; set; } + public global::LabelStudio.PatchedGCSSAExportStorageRequest? Type497 { get; set; } /// /// /// - public global::LabelStudio.PatchedHotkeysRequest? Type498 { get; set; } + public global::LabelStudio.PatchedGCSSAImportStorageRequest? Type498 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelLinkRequest? Type499 { get; set; } + public global::LabelStudio.PatchedGCSWIFExportStorageRequest? Type499 { get; set; } /// /// /// - public global::LabelStudio.PatchedLabelRequest? Type500 { get; set; } + public global::LabelStudio.PatchedGCSWIFImportStorageRequest? Type500 { get; set; } /// /// /// - public global::LabelStudio.PatchedLearningResourceRequest? Type501 { get; set; } + public global::LabelStudio.PatchedHotkeysRequest? Type501 { get; set; } /// /// /// - public global::LabelStudio.PatchedLearningResourceUpdateRequest? Type502 { get; set; } + public global::LabelStudio.PatchedLabelLinkRequest? Type502 { get; set; } /// /// /// - public global::LabelStudio.PatchedLocalFilesExportStorageWriteRequest? Type503 { get; set; } + public global::LabelStudio.PatchedLabelRequest? Type503 { get; set; } /// /// /// - public global::LabelStudio.PatchedLocalFilesImportStorageWriteRequest? Type504 { get; set; } + public global::LabelStudio.PatchedLearningResourceRequest? Type504 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseInterfaceRequest? Type505 { get; set; } + public global::LabelStudio.PatchedLearningResourceUpdateRequest? Type505 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type506 { get; set; } + public global::LabelStudio.PatchedLocalFilesExportStorageWriteRequest? Type506 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type507 { get; set; } + public global::LabelStudio.PatchedLocalFilesImportStorageWriteRequest? Type507 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequest? Type508 { get; set; } + public global::LabelStudio.PatchedLseInterfaceRequest? Type508 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaults? Type509 { get; set; } + public global::LabelStudio.PatchedLseOrganizationSerializerUpdateRequest? Type509 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsExplore? Type510 { get; set; } + public global::System.Collections.Generic.IList>? Type510 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsLabeling? Type511 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequest? Type511 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsRequest? Type512 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaults? Type512 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type513 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsExplore? Type513 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type514 { get; set; } + public global::LabelStudio.PatchedLseProjectUpdateRequestDmColumnDefaultsLabeling? Type514 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseTaskRequest? Type515 { get; set; } + public global::LabelStudio.ReviewSettingsRequest? Type515 { get; set; } /// /// /// - public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type516 { get; set; } + public global::LabelStudio.PatchedLseS3ExportStorageRequest? Type516 { get; set; } /// /// /// - public global::LabelStudio.PatchedMLBackendRequestRequest? Type517 { get; set; } + public global::LabelStudio.PatchedLseS3ImportStorageRequest? Type517 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelInterfaceRequest? Type518 { get; set; } + public global::LabelStudio.PatchedLseTaskRequest? Type518 { get; set; } /// /// /// - public global::LabelStudio.PatchedModelProviderConnectionRequest? Type519 { get; set; } + public global::LabelStudio.PatchedLseUserSerializerUpdateRequest? Type519 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type520 { get; set; } + public global::LabelStudio.PatchedMLBackendRequestRequest? Type520 { get; set; } /// /// /// - public global::LabelStudio.StandardUserTypeEnum? Type521 { get; set; } + public global::LabelStudio.PatchedModelInterfaceRequest? Type521 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type522 { get; set; } + public global::LabelStudio.PatchedModelProviderConnectionRequest? Type522 { get; set; } /// /// /// - public global::LabelStudio.PatchedOrganizationPermissionRequest? Type523 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberCreateUpdateRequest? Type523 { get; set; } /// /// /// - public global::LabelStudio.PatchedPauseRequest? Type524 { get; set; } + public global::LabelStudio.StandardUserTypeEnum? Type524 { get; set; } /// /// /// - public global::LabelStudio.ReasonEnum? Type525 { get; set; } + public global::LabelStudio.PatchedOrganizationMemberTagRequest? Type525 { get; set; } /// /// /// - public global::LabelStudio.PatchedPredictionRequest? Type526 { get; set; } + public global::LabelStudio.PatchedOrganizationPermissionRequest? Type526 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectLearningAssignmentRequest? Type527 { get; set; } + public global::LabelStudio.PatchedPauseRequest? Type527 { get; set; } /// /// /// - public global::LabelStudio.PatchedProjectTemplateRequest? Type528 { get; set; } + public global::LabelStudio.ReasonEnum? Type528 { get; set; } /// /// /// - public global::LabelStudio.PatchedRedisExportStorageWriteRequest? Type529 { get; set; } + public global::LabelStudio.PatchedPredictionRequest? Type529 { get; set; } /// /// /// - public global::LabelStudio.PatchedRedisImportStorageWriteRequest? Type530 { get; set; } + public global::LabelStudio.PatchedProjectLearningAssignmentRequest? Type530 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3ExportStorageWriteRequest? Type531 { get; set; } + public global::LabelStudio.PatchedProjectTemplateRequest? Type531 { get; set; } /// /// /// - public global::LabelStudio.PatchedS3ImportStorageWriteRequest? Type532 { get; set; } + public global::LabelStudio.PatchedRedisExportStorageWriteRequest? Type532 { get; set; } /// /// /// - public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type533 { get; set; } + public global::LabelStudio.PatchedRedisImportStorageWriteRequest? Type533 { get; set; } /// /// /// - public global::LabelStudio.PatchedTaskAssigneesMutationRequest? Type534 { get; set; } + public global::LabelStudio.PatchedS3ExportStorageWriteRequest? Type534 { get; set; } /// /// /// - public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type535 { get; set; } + public global::LabelStudio.PatchedS3ImportStorageWriteRequest? Type535 { get; set; } /// /// /// - public global::LabelStudio.PatchedViewRequestRequest? Type536 { get; set; } + public global::LabelStudio.PatchedSessionTimeoutPolicyRequest? Type536 { get; set; } /// /// /// - public global::LabelStudio.ViewDataRequestRequest? Type537 { get; set; } + public global::LabelStudio.PatchedTaskAssigneesMutationRequest? Type537 { get; set; } /// /// /// - public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type538 { get; set; } + public global::LabelStudio.PatchedThirdPartyModelVersionRequest? Type538 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type539 { get; set; } + public global::LabelStudio.PatchedViewRequestRequest? Type539 { get; set; } /// /// /// - public global::LabelStudio.PatchedWorkspaceRequest? Type540 { get; set; } + public global::LabelStudio.ViewDataRequestRequest? Type540 { get; set; } /// /// /// - public global::LabelStudio.Pause? Type541 { get; set; } + public global::LabelStudio.PatchedWebhookSerializerForUpdateRequest? Type541 { get; set; } /// /// /// - public global::LabelStudio.PauseRequest? Type542 { get; set; } + public global::System.Collections.Generic.IList? Type542 { get; set; } /// /// /// - public global::LabelStudio.Prediction? Type543 { get; set; } + public global::LabelStudio.PatchedWorkspaceRequest? Type543 { get; set; } /// /// /// - public global::LabelStudio.PredictionCountResponse? Type544 { get; set; } + public global::LabelStudio.Pause? Type544 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type545 { get; set; } + public global::LabelStudio.PauseRequest? Type545 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItem? Type546 { get; set; } + public global::LabelStudio.Prediction? Type546 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type547 { get; set; } + public global::LabelStudio.PredictionCountResponse? Type547 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilter? Type548 { get; set; } + public global::System.Collections.Generic.IList? Type548 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterFilter? Type549 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItem? Type549 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterOperator? Type550 { get; set; } + public global::System.Collections.Generic.IList? Type550 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type551 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilter? Type551 { get; set; } /// /// /// - public float? Type552 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterFilter? Type552 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemFilter? Type553 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemChildFilterOperator? Type553 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsFiltersRequestItemOperator? Type554 { get; set; } + public global::LabelStudio.OneOf? Type554 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type555 { get; set; } + public float? Type555 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsOrderingRequestItem? Type556 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemFilter? Type556 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequest? Type557 { get; set; } + public global::LabelStudio.PrepareParamsFiltersRequestItemOperator? Type557 { get; set; } /// /// /// - public global::LabelStudio.OneOf? Type558 { get; set; } + public global::System.Collections.Generic.IList? Type558 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllFalse? Type559 { get; set; } + public global::LabelStudio.PrepareParamsOrderingRequestItem? Type559 { get; set; } /// /// /// - public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllTrue? Type560 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequest? Type560 { get; set; } /// /// /// - public global::LabelStudio.Project? Type561 { get; set; } + public global::LabelStudio.OneOf? Type561 { get; set; } /// /// /// - public global::LabelStudio.ProjectAnnotationsBrowseItem? Type562 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllFalse? Type562 { get; set; } /// /// /// - public global::LabelStudio.ProjectAnnotationsBrowseResponse? Type563 { get; set; } + public global::LabelStudio.PrepareParamsRequestRequestSelectedItemsAllTrue? Type563 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type564 { get; set; } + public global::LabelStudio.Project? Type564 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateModeEnum? Type565 { get; set; } + public global::LabelStudio.ProjectAnnotationsBrowseItem? Type565 { get; set; } /// /// /// - public global::LabelStudio.ProjectDuplicateRequest? Type566 { get; set; } + public global::LabelStudio.ProjectAnnotationsBrowseResponse? Type566 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroup? Type567 { get; set; } + public global::System.Collections.Generic.IList? Type567 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRoleEnum? Type568 { get; set; } + public global::LabelStudio.ProjectDuplicateModeEnum? Type568 { get; set; } /// /// /// - public global::LabelStudio.ProjectGroupRequest? Type569 { get; set; } + public global::LabelStudio.ProjectDuplicateRequest? Type569 { get; set; } /// /// /// - public global::LabelStudio.ProjectImport? Type570 { get; set; } + public global::LabelStudio.ProjectGroup? Type570 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfig? Type571 { get; set; } + public global::LabelStudio.ProjectGroupRoleEnum? Type571 { get; set; } /// /// /// - public global::LabelStudio.ProjectLabelConfigRequest? Type572 { get; set; } + public global::LabelStudio.ProjectGroupRequest? Type572 { get; set; } /// /// /// - public global::LabelStudio.ProjectLearningAssignment? Type573 { get; set; } + public global::LabelStudio.ProjectImport? Type573 { get; set; } /// /// /// - public global::LabelStudio.ProjectLearningAssignmentCreateRequest? Type574 { get; set; } + public global::LabelStudio.ProjectLabelConfig? Type574 { get; set; } /// /// /// - public global::LabelStudio.ProjectMember? Type575 { get; set; } + public global::LabelStudio.ProjectLabelConfigRequest? Type575 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRequest? Type576 { get; set; } + public global::LabelStudio.ProjectLearningAssignment? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::LabelStudio.ProjectLearningAssignmentCreateRequest? Type577 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type578 { get; set; } + public global::LabelStudio.ProjectMember? Type578 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignResponse? Type579 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRequest? Type579 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberBulkAssignRolesRoleEnum? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberIdentityVerificationError? Type581 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRequest? Type581 { get; set; } /// /// /// - public global::LabelStudio.ProjectMemberRequest? Type582 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignResponse? Type582 { get; set; } /// /// /// - public global::LabelStudio.ProjectReimport? Type583 { get; set; } + public global::LabelStudio.ProjectMemberBulkAssignRolesRoleEnum? Type583 { get; set; } /// /// /// - public global::LabelStudio.ProjectRole? Type584 { get; set; } + public global::LabelStudio.ProjectMemberIdentityVerificationError? Type584 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleAssignment? Type585 { get; set; } + public global::LabelStudio.ProjectMemberRequest? Type585 { get; set; } /// /// /// - public global::LabelStudio.ProjectRoleRequest? Type586 { get; set; } + public global::LabelStudio.ProjectReimport? Type586 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetItem? Type587 { get; set; } + public global::LabelStudio.ProjectRole? Type587 { get; set; } /// /// /// - public global::LabelStudio.ProjectSubsetTaskItem? Type588 { get; set; } + public global::LabelStudio.ProjectRoleAssignment? Type588 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type589 { get; set; } + public global::LabelStudio.ProjectRoleRequest? Type589 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplate? Type590 { get; set; } + public global::LabelStudio.ProjectSubsetItem? Type590 { get; set; } /// /// /// - public global::LabelStudio.ProjectTemplateRequest? Type591 { get; set; } + public global::LabelStudio.ProjectSubsetTaskItem? Type591 { get; set; } /// /// /// - public global::LabelStudio.PromptPreviewResponse? Type592 { get; set; } + public global::System.Collections.Generic.IList? Type592 { get; set; } /// /// /// - public global::LabelStudio.PublishLearningResourceRequest? Type593 { get; set; } + public global::LabelStudio.ProjectTemplate? Type593 { get; set; } /// /// /// - public global::LabelStudio.RetakeScopeEnum? Type594 { get; set; } + public global::LabelStudio.ProjectTemplateRequest? Type594 { get; set; } /// /// /// - public global::LabelStudio.QuizAttempt? Type595 { get; set; } + public global::LabelStudio.PromptPreviewResponse? Type595 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type596 { get; set; } + public global::LabelStudio.PublishLearningResourceRequest? Type596 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptQuestion? Type597 { get; set; } + public global::LabelStudio.RetakeScopeEnum? Type597 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptHistory? Type598 { get; set; } + public global::LabelStudio.QuizAttempt? Type598 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type599 { get; set; } + public global::System.Collections.Generic.IList? Type599 { get; set; } /// /// /// - public global::LabelStudio.QuizAttemptHistoryQuiz? Type600 { get; set; } + public global::LabelStudio.QuizAttemptQuestion? Type600 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type601 { get; set; } + public global::LabelStudio.QuizAttemptHistory? Type601 { get; set; } /// /// /// - public global::LabelStudio.QuizLegacyResult? Type602 { get; set; } + public global::System.Collections.Generic.IList? Type602 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type603 { get; set; } + public global::LabelStudio.QuizAttemptHistoryQuiz? Type603 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluate? Type604 { get; set; } + public global::System.Collections.Generic.IList? Type604 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluateModeEnum? Type605 { get; set; } + public global::LabelStudio.QuizLegacyResult? Type605 { get; set; } /// /// /// - public global::LabelStudio.ReEvaluateRequest? Type606 { get; set; } + public global::System.Collections.Generic.Dictionary? Type606 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorage? Type607 { get; set; } + public global::LabelStudio.ReEvaluate? Type607 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorageValidateRequest? Type608 { get; set; } + public global::LabelStudio.ReEvaluateModeEnum? Type608 { get; set; } /// /// /// - public global::LabelStudio.RedisExportStorageWriteRequest? Type609 { get; set; } + public global::LabelStudio.ReEvaluateRequest? Type609 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorage? Type610 { get; set; } + public global::LabelStudio.RedisExportStorage? Type610 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorageValidateRequest? Type611 { get; set; } + public global::LabelStudio.RedisExportStorageValidateRequest? Type611 { get; set; } /// /// /// - public global::LabelStudio.RedisImportStorageWriteRequest? Type612 { get; set; } + public global::LabelStudio.RedisExportStorageWriteRequest? Type612 { get; set; } /// /// /// - public global::LabelStudio.RefinePromptRequestRequest? Type613 { get; set; } + public global::LabelStudio.RedisImportStorage? Type613 { get; set; } /// /// /// - public global::LabelStudio.RefinedPromptResponse? Type614 { get; set; } + public global::LabelStudio.RedisImportStorageValidateRequest? Type614 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersion? Type615 { get; set; } + public global::LabelStudio.RedisImportStorageWriteRequest? Type615 { get; set; } /// /// /// - public global::LabelStudio.RegressionSummary? Type616 { get; set; } + public global::LabelStudio.RefinePromptRequestRequest? Type616 { get; set; } /// /// /// - public global::LabelStudio.RegressionsResponse? Type617 { get; set; } + public global::LabelStudio.RefinedPromptResponse? Type617 { get; set; } /// /// /// - public global::LabelStudio.RequeueRejectedTasksModeEnum? Type618 { get; set; } + public global::LabelStudio.ThirdPartyModelVersion? Type618 { get; set; } /// /// /// - public global::LabelStudio.RetakeReasonEnum? Type619 { get; set; } + public global::LabelStudio.RegressionSummary? Type619 { get; set; } /// /// /// - public global::LabelStudio.ReviewCriteriaEnum? Type620 { get; set; } + public global::LabelStudio.RegressionsResponse? Type620 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRule? Type621 { get; set; } + public global::LabelStudio.RequeueRejectedTasksModeEnum? Type621 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRuleRequestRequest? Type622 { get; set; } + public global::LabelStudio.RetakeReasonEnum? Type622 { get; set; } /// /// /// - public global::LabelStudio.ReviewRoutingRulesReplaceRequest? Type623 { get; set; } + public global::LabelStudio.ReviewCriteriaEnum? Type623 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type624 { get; set; } + public global::LabelStudio.ReviewRoutingRule? Type624 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type625 { get; set; } + public global::LabelStudio.ReviewRoutingRuleRequestRequest? Type625 { get; set; } /// /// /// - public global::LabelStudio.ReviewSettingsSamplingEnum? Type626 { get; set; } + public global::LabelStudio.ReviewRoutingRulesReplaceRequest? Type626 { get; set; } /// /// /// - public global::LabelStudio.RevokeCertificateRequest? Type627 { get; set; } + public global::System.Collections.Generic.IList? Type627 { get; set; } /// /// /// - public global::LabelStudio.RevokeInviteRequest? Type628 { get; set; } + public global::System.Collections.Generic.IList? Type628 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorage? Type629 { get; set; } + public global::LabelStudio.ReviewSettingsSamplingEnum? Type629 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorageValidateRequest? Type630 { get; set; } + public global::LabelStudio.RevokeCertificateRequest? Type630 { get; set; } /// /// /// - public global::LabelStudio.S3ExportStorageWriteRequest? Type631 { get; set; } + public global::LabelStudio.RevokeInviteRequest? Type631 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorage? Type632 { get; set; } + public global::LabelStudio.S3ExportStorage? Type632 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorageValidateRequest? Type633 { get; set; } + public global::LabelStudio.S3ExportStorageValidateRequest? Type633 { get; set; } /// /// /// - public global::LabelStudio.S3ImportStorageWriteRequest? Type634 { get; set; } + public global::LabelStudio.S3ExportStorageWriteRequest? Type634 { get; set; } /// /// /// - public global::LabelStudio.SamlSettings? Type635 { get; set; } + public global::LabelStudio.S3ImportStorage? Type635 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type636 { get; set; } + public global::LabelStudio.S3ImportStorageValidateRequest? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type637 { get; set; } + public global::LabelStudio.S3ImportStorageWriteRequest? Type637 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdate? Type638 { get; set; } + public global::LabelStudio.SamlSettings? Type638 { get; set; } /// /// /// - public global::LabelStudio.SamlSettingsUpdateRequest? Type639 { get; set; } + public global::System.Collections.Generic.IList? Type639 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type640 { get; set; } + public global::System.Collections.Generic.IList>? Type640 { get; set; } /// /// /// - public global::LabelStudio.ScimSettings? Type641 { get; set; } + public global::LabelStudio.SamlSettingsUpdate? Type641 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdate? Type642 { get; set; } + public global::LabelStudio.SamlSettingsUpdateRequest? Type642 { get; set; } /// /// /// - public global::LabelStudio.ScimSettingsUpdateRequest? Type643 { get; set; } + public global::System.Collections.Generic.IList? Type643 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type644 { get; set; } + public global::LabelStudio.ScimSettings? Type644 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type645 { get; set; } + public global::LabelStudio.ScimSettingsUpdate? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type646 { get; set; } + public global::LabelStudio.ScimSettingsUpdateRequest? Type646 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceAccessAssignment? Type647 { get; set; } + public global::System.Collections.Generic.IList? Type647 { get; set; } /// /// /// - public global::LabelStudio.SendInviteRequest? Type648 { get; set; } + public global::System.Collections.Generic.IList? Type648 { get; set; } /// /// /// - public global::LabelStudio.SerializationOption? Type649 { get; set; } + public global::System.Collections.Generic.IList? Type649 { get; set; } /// /// /// - public global::LabelStudio.SerializationOptionRequest? Type650 { get; set; } + public global::LabelStudio.WorkspaceAccessAssignment? Type650 { get; set; } /// /// /// - public global::LabelStudio.SessionTimeoutPolicy? Type651 { get; set; } + public global::LabelStudio.SendInviteRequest? Type651 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillCancelResponse? Type652 { get; set; } + public global::LabelStudio.SerializationOption? Type652 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillErrorResponse? Type653 { get; set; } + public global::LabelStudio.SerializationOptionRequest? Type653 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItem? Type654 { get; set; } + public global::LabelStudio.SessionTimeoutPolicy? Type654 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobItemResponse? Type655 { get; set; } + public global::LabelStudio.StateBackfillCancelResponse? Type655 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillProgress? Type656 { get; set; } + public global::LabelStudio.StateBackfillErrorResponse? Type656 { get; set; } /// /// /// - public global::LabelStudio.StateTriggeredBy? Type657 { get; set; } + public global::LabelStudio.StateBackfillJobItem? Type657 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillJobListResponse? Type658 { get; set; } + public global::LabelStudio.StateBackfillJobItemResponse? Type658 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type659 { get; set; } + public global::LabelStudio.StateBackfillProgress? Type659 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillOrgStatus? Type660 { get; set; } + public global::LabelStudio.StateTriggeredBy? Type660 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillResponse? Type661 { get; set; } + public global::LabelStudio.StateBackfillJobListResponse? Type661 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::LabelStudio.StateBackfillStatusResponse? Type663 { get; set; } + public global::LabelStudio.StateBackfillOrgStatus? Type663 { get; set; } /// /// /// - public global::LabelStudio.TriggeredBy2? Type664 { get; set; } + public global::LabelStudio.StateBackfillResponse? Type664 { get; set; } /// /// /// - public global::LabelStudio.TaskAgreementMatrixResponse? Type665 { get; set; } + public global::System.Collections.Generic.IList? Type665 { get; set; } /// /// /// - public global::LabelStudio.TaskAssigneesMutationRequest? Type666 { get; set; } + public global::LabelStudio.StateBackfillStatusResponse? Type666 { get; set; } /// /// /// - public global::LabelStudio.TaskAssignment? Type667 { get; set; } + public global::LabelStudio.TriggeredBy2? Type667 { get; set; } /// /// /// - public global::LabelStudio.TaskEvent? Type668 { get; set; } + public global::LabelStudio.TaskAgreementMatrixResponse? Type668 { get; set; } /// /// /// - public global::LabelStudio.TaskEventRequest? Type669 { get; set; } + public global::LabelStudio.TaskAssigneesMutationRequest? Type669 { get; set; } /// /// /// - public global::LabelStudio.TaskSimple? Type670 { get; set; } + public global::LabelStudio.TaskAssignment? Type670 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type671 { get; set; } + public global::LabelStudio.TaskEvent? Type671 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type672 { get; set; } + public global::LabelStudio.TaskEventRequest? Type672 { get; set; } /// /// /// - public global::LabelStudio.ThirdPartyModelVersionRequest? Type673 { get; set; } + public global::LabelStudio.TaskSimple? Type673 { get; set; } /// /// /// - public global::LabelStudio.TokenDetailError? Type674 { get; set; } + public global::System.Collections.Generic.IList? Type674 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshRequest? Type675 { get; set; } + public global::System.Collections.Generic.IList? Type675 { get; set; } /// /// /// - public global::LabelStudio.TokenRefreshResponse? Type676 { get; set; } + public global::LabelStudio.ThirdPartyModelVersionRequest? Type676 { get; set; } /// /// /// - public global::LabelStudio.TokenRotateResponse? Type677 { get; set; } + public global::LabelStudio.TokenDetailError? Type677 { get; set; } /// /// /// - public global::LabelStudio.TryTaskRequestRequest? Type678 { get; set; } + public global::LabelStudio.TokenRefreshRequest? Type678 { get; set; } /// /// /// - public global::LabelStudio.TryTaskResponse? Type679 { get; set; } + public global::LabelStudio.TokenRefreshResponse? Type679 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlDomainRequestRequest? Type680 { get; set; } + public global::LabelStudio.TokenRotateResponse? Type680 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlDomainResponse? Type681 { get; set; } + public global::LabelStudio.TryTaskRequestRequest? Type681 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type682 { get; set; } + public global::LabelStudio.TryTaskResponse? Type682 { get; set; } /// /// /// - public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type683 { get; set; } + public global::LabelStudio.ValidateSamlDomainRequestRequest? Type683 { get; set; } /// /// /// - public global::LabelStudio.ValueCountsBackfillJob? Type684 { get; set; } + public global::LabelStudio.ValidateSamlDomainResponse? Type684 { get; set; } /// /// /// - public global::LabelStudio.VersionResponse? Type685 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlRequestRequest? Type685 { get; set; } /// /// /// - public global::LabelStudio.View? Type686 { get; set; } + public global::LabelStudio.ValidateSamlMetadataUrlResponse? Type686 { get; set; } /// /// /// - public global::LabelStudio.ViewLockedBy? Type687 { get; set; } + public global::LabelStudio.ValueCountsBackfillJob? Type687 { get; set; } /// /// /// - public global::LabelStudio.ViewOrderRequest? Type688 { get; set; } + public global::LabelStudio.VersionResponse? Type688 { get; set; } /// /// /// - public global::LabelStudio.ViewRequestRequest? Type689 { get; set; } + public global::LabelStudio.View? Type689 { get; set; } /// /// /// - public global::LabelStudio.Webhook? Type690 { get; set; } + public global::LabelStudio.ViewLockedBy? Type690 { get; set; } /// /// /// - public global::LabelStudio.WebhookRequest? Type691 { get; set; } + public global::LabelStudio.ViewOrderRequest? Type691 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdate? Type692 { get; set; } + public global::LabelStudio.ViewRequestRequest? Type692 { get; set; } /// /// /// - public global::LabelStudio.WebhookSerializerForUpdateRequest? Type693 { get; set; } + public global::LabelStudio.Webhook? Type693 { get; set; } /// /// /// - public global::LabelStudio.WhoAmILseFields? Type694 { get; set; } + public global::LabelStudio.WebhookRequest? Type694 { get; set; } /// /// /// - public global::LabelStudio.WhoAmIUser? Type695 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdate? Type695 { get; set; } /// /// /// - public global::LabelStudio.Workspace? Type696 { get; set; } + public global::LabelStudio.WebhookSerializerForUpdateRequest? Type696 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type697 { get; set; } + public global::LabelStudio.WhoAmILseFields? Type697 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreate? Type698 { get; set; } + public global::LabelStudio.WhoAmIUser? Type698 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberCreateRequest? Type699 { get; set; } + public global::LabelStudio.Workspace? Type699 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceMemberList? Type700 { get; set; } + public global::LabelStudio.WorkspaceMemberBulkAssignRequest? Type700 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceProjectsRequest? Type701 { get; set; } + public global::LabelStudio.WorkspaceMemberCreate? Type701 { get; set; } /// /// /// - public global::LabelStudio.WorkspaceRequest? Type702 { get; set; } + public global::LabelStudio.WorkspaceMemberCreateRequest? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::LabelStudio.WorkspaceMemberList? Type703 { get; set; } /// /// /// - public global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest? Type704 { get; set; } + public global::LabelStudio.WorkspaceProjectsRequest? Type704 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type705 { get; set; } + public global::LabelStudio.WorkspaceRequest? Type705 { get; set; } /// /// /// - public global::LabelStudio.ApiActivityLogsListMethod? Type706 { get; set; } + public global::System.Collections.Generic.IList? Type706 { get; set; } /// /// /// - public global::LabelStudio.ApiAnalyticsKpisRetrieveSegmentByTime? Type707 { get; set; } + public global::LabelStudio.ApiLearningResourcesImportCreateRequest? Type707 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsCreateId? Type708 { get; set; } + public global::LabelStudio.ApiLearningResourcesUploadCreateRequest? Type708 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? Type709 { get; set; } + public global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest? Type709 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? Type710 { get; set; } + public global::System.Collections.Generic.IList? Type710 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? Type711 { get; set; } + public global::LabelStudio.ApiActivityLogsListMethod? Type711 { get; set; } /// /// /// - public global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? Type712 { get; set; } + public global::LabelStudio.ApiAnalyticsKpisRetrieveSegmentByTime? Type712 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsJobsListStatus? Type713 { get; set; } + public global::LabelStudio.ApiDmActionsCreateId? Type713 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type714 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsIdpAssignmentsHistoryListKind? Type714 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersPaginatedListTagsOperator? Type715 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListSource? Type715 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type716 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsMembershipHistoryListUserType? Type716 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type717 { get; set; } + public global::LabelStudio.ApiFsmOrganizationsSettingsHistoryListKind? Type717 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type718 { get; set; } + public global::LabelStudio.ApiOrganizationsJobsListStatus? Type718 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type719 { get; set; } + public global::LabelStudio.ApiProjectsAnalyticsDataQualityAgreementAnalysisConfusionMatrixRetrieveMode? Type719 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type720 { get; set; } + public global::LabelStudio.ApiProjectsMembersPaginatedListTagsOperator? Type720 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type721 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceParticipantsListTable? Type721 { get; set; } /// /// /// - public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type722 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveTable? Type722 { get; set; } /// /// /// - public global::LabelStudio.ApiTasksListFields? Type723 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveTable? Type723 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type724 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesDestroyType? Type724 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type725 { get; set; } + public global::LabelStudio.ApiProjectsSubsetTasksListAlignmentOutcome? Type725 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type726 { get; set; } + public global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType? Type726 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type727 { get; set; } + public global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset? Type727 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type728 { get; set; } + public global::LabelStudio.ApiTasksListFields? Type728 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type729 { get; set; } + public global::System.Collections.Generic.IList? Type729 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type730 { get; set; } + public global::System.Collections.Generic.IList? Type730 { get; set; } /// /// /// - public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type731 { get; set; } + public global::System.Collections.Generic.IList? Type731 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type732 { get; set; } + public global::LabelStudio.ApiAnnotationHistoryDestroyResponse? Type732 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type733 { get; set; } + public global::System.Collections.Generic.IList? Type733 { get; set; } /// /// /// - public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type734 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkDeleteCreateResponse? Type734 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type735 { get; set; } + public global::System.Collections.Generic.IList? Type735 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type736 { get; set; } + public global::LabelStudio.ApiAnnotationsBulkCreateResponseItem? Type736 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type737 { get; set; } + public global::System.Collections.Generic.IList? Type737 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type738 { get; set; } + public global::LabelStudio.ApiCurrentUserResetTokenCreateResponse? Type738 { get; set; } /// /// /// - public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type739 { get; set; } + public global::LabelStudio.ApiCurrentUserTokenRetrieveResponse? Type739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type740 { get; set; } + public global::System.Collections.Generic.IList? Type740 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type741 { get; set; } + public global::System.Collections.Generic.IList? Type741 { get; set; } /// /// /// - public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type742 { get; set; } + public global::System.Collections.Generic.IList? Type742 { get; set; } /// /// /// - public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type743 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItem? Type743 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse? Type744 { get; set; } + public global::LabelStudio.ApiDmActionsRetrieveResponseItemDialog? Type744 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type745 { get; set; } + public global::System.Collections.Generic.IList? Type745 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? Type746 { get; set; } + public global::System.Collections.Generic.IList? Type746 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Type747 { get; set; } + public global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem? Type747 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type748 { get; set; } + public global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse? Type748 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Type749 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse? Type749 { get; set; } /// /// /// - public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? Type750 { get; set; } + public global::System.Collections.Generic.IList? Type750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type751 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? Type751 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type752 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Type752 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type753 { get; set; } + public global::System.DateTimeOffset? Type753 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type754 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Type754 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type755 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? Type755 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type757 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type757 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type758 { get; set; } + public global::System.Collections.Generic.IList? Type758 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type759 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type759 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type761 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type761 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type762 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type763 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type764 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type764 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type765 { get; set; } + public global::System.Collections.Generic.IList? Type765 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type766 { get; set; } + public global::System.Collections.Generic.IList? Type766 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type767 { get; set; } + public global::System.Collections.Generic.IList? Type767 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type769 { get; set; } + public global::System.Collections.Generic.IList? Type769 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type771 { get; set; } + public global::System.Collections.Generic.IList? Type771 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type772 { get; set; } + public global::System.Collections.Generic.IList? Type772 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type773 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type773 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type774 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type774 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type775 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type775 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type776 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type776 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type777 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type777 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type778 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type778 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type780 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type780 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type781 { get; set; } + public global::System.Collections.Generic.IList? Type781 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type782 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type782 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type783 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type783 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type784 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type785 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type786 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type786 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type787 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type787 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type788 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type788 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type789 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type789 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type790 { get; set; } + public global::System.Collections.Generic.IList? Type790 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type791 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type791 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type792 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type792 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type793 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type793 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type794 { get; set; } + public global::LabelStudio.OneOf>? Type794 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type795 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type795 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type796 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type796 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type797 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type797 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type798 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type798 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type799 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type799 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type800 { get; set; } + public global::System.Collections.Generic.IList? Type800 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type801 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type801 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type802 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type802 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type803 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type803 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type804 { get; set; } + public global::System.Collections.Generic.IList? Type804 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type805 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type805 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type806 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type806 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type807 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type807 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type808 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type808 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type809 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type809 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type810 { get; set; } + public global::System.Collections.Generic.IList? Type810 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type811 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type811 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type812 { get; set; } + public global::System.Collections.Generic.IList? Type812 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type813 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type815 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type816 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type817 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type817 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type818 { get; set; } + public global::System.Collections.Generic.IList? Type818 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type819 { get; set; } + public global::System.Collections.Generic.IList? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::System.Collections.Generic.IList? Type820 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type821 { get; set; } + public global::System.Collections.Generic.IList? Type821 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type822 { get; set; } + public global::System.Collections.Generic.IList? Type822 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type823 { get; set; } + public global::System.Collections.Generic.IList? Type823 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type824 { get; set; } + public global::System.Collections.Generic.IList? Type824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type825 { get; set; } + public global::System.Collections.Generic.IList? Type825 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type826 { get; set; } + public global::System.Collections.Generic.IList? Type826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type827 { get; set; } + public global::System.Collections.Generic.IList? Type827 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type828 { get; set; } + public global::System.Collections.Generic.IList? Type828 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type830 { get; set; } + public global::System.Collections.Generic.IList? Type830 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type831 { get; set; } + public global::System.Collections.Generic.IList? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::System.Collections.Generic.IList? Type832 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type834 { get; set; } + public global::System.Collections.Generic.IList? Type834 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type836 { get; set; } + public global::System.Collections.Generic.IList? Type836 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type837 { get; set; } + public global::System.Collections.Generic.IList? Type837 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type838 { get; set; } + public global::System.Collections.Generic.IList? Type838 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type839 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type839 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type840 { get; set; } + public global::System.Collections.Generic.IList? Type840 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type841 { get; set; } + public global::System.Collections.Generic.IList? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::System.Collections.Generic.IList? Type842 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type843 { get; set; } + public global::System.Collections.Generic.IList? Type843 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type844 { get; set; } + public global::System.Collections.Generic.IList? Type844 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type845 { get; set; } + public global::System.Collections.Generic.IList? Type845 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type846 { get; set; } + public global::System.Collections.Generic.IList? Type846 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type847 { get; set; } + public global::System.Collections.Generic.IList? Type847 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type848 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type848 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type849 { get; set; } + public global::System.Collections.Generic.IList? Type849 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type850 { get; set; } + public global::System.Collections.Generic.IList? Type850 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type851 { get; set; } + public global::System.Collections.Generic.IList? Type851 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type852 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type852 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type853 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type853 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type854 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type854 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type855 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type855 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type856 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type856 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type857 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type857 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type858 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type858 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type859 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type859 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type860 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type860 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type861 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type861 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type862 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type862 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type863 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type863 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type864 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type864 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type865 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type865 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type866 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type866 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type867 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type867 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type868 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type869 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type870 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type871 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type872 { get; set; } /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResources.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResources.JsonSerializerContext.g.cs index d571aabf..5d8d58af 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LearningResources.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResources.JsonSerializerContext.g.cs @@ -32,6 +32,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseEditingSessionHeartbeatRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseEditingSessionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseExportPayload))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseImportResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum), TypeInfoPropertyName = "EstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseModule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseOutline))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -45,7 +48,6 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.CourseStructureOpResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.DuplicateLearningResourceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum), TypeInfoPropertyName = "EstimatedDurationUnitEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningProgressResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningProgressUpdateRequest))] @@ -62,6 +64,7 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum), TypeInfoPropertyName = "LearningResourceUploadResponseStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.PaginatedCertificateList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -89,6 +92,8 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.QuizLegacyResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RetakeReasonEnum), TypeInfoPropertyName = "RetakeReasonEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RevokeCertificateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesImportCreateRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUploadCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUserProgressImportCreateRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -96,8 +101,9 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OpEnum?), TypeInfoPropertyName = "NullableOpEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.EstimatedDurationUnitEnum?), TypeInfoPropertyName = "NullableEstimatedDurationUnitEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.OpEnum?), TypeInfoPropertyName = "NullableOpEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?), TypeInfoPropertyName = "NullableLearningResourceUploadResponseStatusEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RetakeScopeEnum?), TypeInfoPropertyName = "NullableRetakeScopeEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.RetakeReasonEnum?), TypeInfoPropertyName = "NullableRetakeReasonEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -205,6 +211,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::LabelStudio.EstimatedDurationUnitEnum?) + || typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum) + + || typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?) + || typeToConvert == typeof(global::LabelStudio.OpEnum) || typeToConvert == typeof(global::LabelStudio.OpEnum?) @@ -232,6 +242,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::LabelStudio.JsonConverters.EstimatedDurationUnitEnumNullableJsonConverter(); } + if (typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum)) + { + return new global::LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumJsonConverter(); + } + + if (typeToConvert == typeof(global::LabelStudio.LearningResourceUploadResponseStatusEnum?)) + { + return new global::LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumNullableJsonConverter(); + } + if (typeToConvert == typeof(global::LabelStudio.OpEnum)) { return new global::LabelStudio.JsonConverters.OpEnumJsonConverter(); diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs new file mode 100644 index 00000000..0c8182bf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieve.g.cs @@ -0,0 +1,486 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class LearningResourcesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiLearningResourcesExportRetrieveSecurityRequirement0 = + 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_ApiLearningResourcesExportRetrieveSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiLearningResourcesExportRetrieveSecurityRequirement0, + }; + partial void PrepareApiLearningResourcesExportRetrieveArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + ref bool? includeAudioVideo, + ref bool? includeImages, + ref bool? includeOther); + partial void PrepareApiLearningResourcesExportRetrieveRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + bool? includeAudioVideo, + bool? includeImages, + bool? includeOther); + partial void ProcessApiLearningResourcesExportRetrieveResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiLearningResourcesExportRetrieveResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ApiLearningResourcesExportRetrieveAsResponseAsync( + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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> ApiLearningResourcesExportRetrieveAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesExportRetrieveArguments( + httpClient: HttpClient, + id: ref id, + includeAudioVideo: ref includeAudioVideo, + includeImages: ref includeImages, + includeOther: ref includeOther); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesExportRetrieveSecurityRequirements, + operationName: "ApiLearningResourcesExportRetrieveAsync"); + + 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/learning-resources/{id}/export/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("include_audio_video", includeAudioVideo?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_images", includeImages?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_other", includeOther?.ToString().ToLowerInvariant()) + ; + 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 + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/json"); + + 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); + PrepareApiLearningResourcesExportRetrieveRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther); + + 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: "ApiLearningResourcesExportRetrieve", + methodName: "ApiLearningResourcesExportRetrieveAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieve", + methodName: "ApiLearningResourcesExportRetrieveAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieve", + methodName: "ApiLearningResourcesExportRetrieveAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesExportRetrieveResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieve", + methodName: "ApiLearningResourcesExportRetrieveAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieve", + methodName: "ApiLearningResourcesExportRetrieveAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessApiLearningResourcesExportRetrieveResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.CourseExportPayload.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.CourseExportPayload.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs new file mode 100644 index 00000000..bddbfbba --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesExportRetrieveAsBytes.g.cs @@ -0,0 +1,1187 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class LearningResourcesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirement0 = + 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_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirement0, + }; + partial void PrepareApiLearningResourcesExportRetrieveAsBytesArguments( + global::System.Net.Http.HttpClient httpClient, + ref int id, + ref bool? includeAudioVideo, + ref bool? includeImages, + ref bool? includeOther); + partial void PrepareApiLearningResourcesExportRetrieveAsBytesRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int id, + bool? includeAudioVideo, + bool? includeImages, + bool? includeOther); + partial void ProcessApiLearningResourcesExportRetrieveAsBytesResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiLearningResourcesExportRetrieveAsBytesResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref byte[] content); + + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsBytesAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ApiLearningResourcesExportRetrieveAsBytesAsResponseAsync( + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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 ApiLearningResourcesExportRetrieveAsBytesAsStreamAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesExportRetrieveAsBytesArguments( + httpClient: HttpClient, + id: ref id, + includeAudioVideo: ref includeAudioVideo, + includeImages: ref includeImages, + includeOther: ref includeOther); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirements, + operationName: "ApiLearningResourcesExportRetrieveAsBytesAsync"); + + 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/learning-resources/{id}/export/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("include_audio_video", includeAudioVideo?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_images", includeImages?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_other", includeOther?.ToString().ToLowerInvariant()) + ; + 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 + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/zip"); + + 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); + PrepareApiLearningResourcesExportRetrieveAsBytesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther); + + 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: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesExportRetrieveAsBytesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::LabelStudio.ResponseStream(__response, __content); + } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// The response metadata and an unbuffered body stream. The caller must dispose Body to release the HTTP response. + /// 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> ApiLearningResourcesExportRetrieveAsBytesAsStreamAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesExportRetrieveAsBytesArguments( + httpClient: HttpClient, + id: ref id, + includeAudioVideo: ref includeAudioVideo, + includeImages: ref includeImages, + includeOther: ref includeOther); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirements, + operationName: "ApiLearningResourcesExportRetrieveAsBytesAsync"); + + 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/learning-resources/{id}/export/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("include_audio_video", includeAudioVideo?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_images", includeImages?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_other", includeOther?.ToString().ToLowerInvariant()) + ; + 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 + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/zip"); + + 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); + PrepareApiLearningResourcesExportRetrieveAsBytesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther); + + 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: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseHeadersRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + try + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesExportRetrieveAsBytesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + try + { + __response.EnsureSuccessStatusCode(); + + var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: new global::LabelStudio.ResponseStream(__response, __content)); + } + catch (global::System.OperationCanceledException) + { + throw; + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + } + catch + { + __response.Dispose(); + throw; + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Export a learning resource
+ /// <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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + ///
+ /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// + /// Default Value: false + /// + /// 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> ApiLearningResourcesExportRetrieveAsBytesAsResponseAsync( + int id, + bool? includeAudioVideo = default, + bool? includeImages = default, + bool? includeOther = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesExportRetrieveAsBytesArguments( + httpClient: HttpClient, + id: ref id, + includeAudioVideo: ref includeAudioVideo, + includeImages: ref includeImages, + includeOther: ref includeOther); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesExportRetrieveAsBytesSecurityRequirements, + operationName: "ApiLearningResourcesExportRetrieveAsBytesAsync"); + + 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/learning-resources/{id}/export/", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("include_audio_video", includeAudioVideo?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_images", includeImages?.ToString().ToLowerInvariant()) + .AddOptionalParameter("include_other", includeOther?.ToString().ToLowerInvariant()) + ; + 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 + + __httpRequest.Headers.TryAddWithoutValidation( + "Accept", + "application/zip"); + + 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); + PrepareApiLearningResourcesExportRetrieveAsBytesRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id, + includeAudioVideo: includeAudioVideo, + includeImages: includeImages, + includeOther: includeOther); + + 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: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesExportRetrieveAsBytesResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesExportRetrieveAsBytes", + methodName: "ApiLearningResourcesExportRetrieveAsBytesAsync", + pathTemplate: "$\"/api/learning-resources/{id}/export/\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsByteArrayAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessApiLearningResourcesExportRetrieveAsBytesResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: null, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + var __content = await __response.Content.ReadAsByteArrayAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __content); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesImportCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesImportCreate.g.cs new file mode 100644 index 00000000..261f3914 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesImportCreate.g.cs @@ -0,0 +1,1402 @@ + +#nullable enable + +namespace LabelStudio +{ + public partial class LearningResourcesClient + { + + + private static readonly global::LabelStudio.EndPointSecurityRequirement s_ApiLearningResourcesImportCreateSecurityRequirement0 = + 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_ApiLearningResourcesImportCreateSecurityRequirements = + new global::LabelStudio.EndPointSecurityRequirement[] + { s_ApiLearningResourcesImportCreateSecurityRequirement0, + }; + partial void PrepareApiLearningResourcesImportCreateArguments( + global::System.Net.Http.HttpClient httpClient, + global::LabelStudio.ApiLearningResourcesImportCreateRequest request); + partial void PrepareApiLearningResourcesImportCreateRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::LabelStudio.ApiLearningResourcesImportCreateRequest request); + partial void ProcessApiLearningResourcesImportCreateResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessApiLearningResourcesImportCreateResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// 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 ApiLearningResourcesImportCreateAsync( + + global::LabelStudio.ApiLearningResourcesImportCreateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await ApiLearningResourcesImportCreateAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// 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> ApiLearningResourcesImportCreateAsResponseAsync( + + global::LabelStudio.ApiLearningResourcesImportCreateRequest request, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesImportCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesImportCreateSecurityRequirements, + operationName: "ApiLearningResourcesImportCreateAsync"); + + 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: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/learning-resources/import/", + 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 __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); + __httpRequestContent.Add( + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } + + if (request.Title != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Title ?? string.Empty), + name: "\"title\""); + + } + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.Workspace, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), + name: "\"workspace\""); + + __httpRequest.Content = __httpRequestContent; + + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiLearningResourcesImportCreateRequest( + 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: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesImportCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessApiLearningResourcesImportCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.CourseImportResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.CourseImportResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// + /// + /// + /// 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 ApiLearningResourcesImportCreateAsync( + byte[] file, + string filename, + int workspace, + string? title = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::LabelStudio.ApiLearningResourcesImportCreateRequest + { + File = file, + Filename = filename, + Title = title, + Workspace = workspace, + }; + + return await ApiLearningResourcesImportCreateAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// The stream to send as the multipart 'file' file part. + /// + /// + /// + /// + /// 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 ApiLearningResourcesImportCreateAsync( + global::System.IO.Stream file, + string filename, + int workspace, + string? title = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + + file = file ?? throw new global::System.ArgumentNullException(nameof(file)); + var request = new global::LabelStudio.ApiLearningResourcesImportCreateRequest + { + File = global::System.Array.Empty(), + Filename = filename, + Title = title, + Workspace = workspace, + }; + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesImportCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesImportCreateSecurityRequirements, + operationName: "ApiLearningResourcesImportCreateAsync"); + + 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: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/learning-resources/import/", + 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 __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.StreamContent(file); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); + __httpRequestContent.Add( + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } + + if (request.Title != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Title ?? string.Empty), + name: "\"title\""); + + } + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.Workspace, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), + name: "\"workspace\""); + + __httpRequest.Content = __httpRequestContent; + + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiLearningResourcesImportCreateRequest( + 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: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesImportCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessApiLearningResourcesImportCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + return + global::LabelStudio.CourseImportResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + return + await global::LabelStudio.CourseImportResponse.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 global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// ✨ Import a learning resource
+ /// <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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + ///
+ /// + /// The stream to send as the multipart 'file' file part. + /// + /// + /// + /// + /// 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> ApiLearningResourcesImportCreateAsResponseAsync( + global::System.IO.Stream file, + string filename, + int workspace, + string? title = default, + global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + + file = file ?? throw new global::System.ArgumentNullException(nameof(file)); + var request = new global::LabelStudio.ApiLearningResourcesImportCreateRequest + { + File = global::System.Array.Empty(), + Filename = filename, + Title = title, + Workspace = workspace, + }; + PrepareArguments( + client: HttpClient); + PrepareApiLearningResourcesImportCreateArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::LabelStudio.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_ApiLearningResourcesImportCreateSecurityRequirements, + operationName: "ApiLearningResourcesImportCreateAsync"); + + 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: false); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::LabelStudio.PathBuilder( + path: "/api/learning-resources/import/", + 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 __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + var __contentFile = new global::System.Net.Http.StreamContent(file); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); + __httpRequestContent.Add( + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } + + if (request.Title != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Title ?? string.Empty), + name: "\"title\""); + + } + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(global::System.Convert.ToString(request.Workspace, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty), + name: "\"workspace\""); + + __httpRequest.Content = __httpRequestContent; + + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareApiLearningResourcesImportCreateRequest( + 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: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::LabelStudio.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::LabelStudio.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::LabelStudio.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessApiLearningResourcesImportCreateResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::LabelStudio.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::LabelStudio.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "ApiLearningResourcesImportCreate", + methodName: "ApiLearningResourcesImportCreateAsync", + pathTemplate: "\"/api/learning-resources/import/\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessApiLearningResourcesImportCreateResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::LabelStudio.CourseImportResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::LabelStudio.CourseImportResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::LabelStudio.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs index 960b943e..b4b0bbb4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LearningResourcesClient.ApiLearningResourcesUploadCreate.g.cs @@ -28,12 +28,12 @@ public partial class LearningResourcesClient partial void PrepareApiLearningResourcesUploadCreateArguments( global::System.Net.Http.HttpClient httpClient, ref int id, - global::LabelStudio.LearningResourceRequest request); + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request); partial void PrepareApiLearningResourcesUploadCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int id, - global::LabelStudio.LearningResourceRequest request); + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request); partial void ProcessApiLearningResourcesUploadCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -44,14 +44,14 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( ref string content); /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// /// @@ -61,7 +61,7 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( public async global::System.Threading.Tasks.Task ApiLearningResourcesUploadCreateAsync( int id, - global::LabelStudio.LearningResourceRequest request, + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -76,14 +76,14 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( return __response.Body; } /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// /// @@ -93,7 +93,7 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( public async global::System.Threading.Tasks.Task> ApiLearningResourcesUploadCreateAsResponseAsync( int id, - global::LabelStudio.LearningResourceRequest request, + global::LabelStudio.ApiLearningResourcesUploadCreateRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( var __maxAttempts = global::LabelStudio.AutoSDKRequestOptionsSupport.GetMaxAttempts( clientOptions: Options, requestOptions: requestOptions, - supportsRetry: true); + supportsRetry: false); global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() { @@ -161,12 +161,77 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( __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"); + + var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); + if (request.AllowExternal != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.AllowExternal, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), + name: "\"allow_external\""); + + } + if (request.DryRun != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent((global::System.Convert.ToString(request.DryRun, global::System.Globalization.CultureInfo.InvariantCulture) ?? string.Empty).ToLowerInvariant()), + name: "\"dry_run\""); + + } + if (request.File != default) + { + + var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()); + __contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue( + request.Filename is null + ? "application/octet-stream" + : (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch + { + ".aac" => "audio/aac", + ".flac" => "audio/flac", + ".gif" => "image/gif", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".json" => "application/json", + ".m4a" => "audio/mp4", + ".mp3" => "audio/mpeg", + ".mp4" => "video/mp4", + ".mpeg" => "audio/mpeg", + ".mpga" => "audio/mpeg", + ".oga" => "audio/ogg", + ".ogg" => "audio/ogg", + ".opus" => "audio/ogg", + ".pdf" => "application/pdf", + ".png" => "image/png", + ".txt" => "text/plain", + ".wav" => "audio/wav", + ".weba" => "audio/webm", + ".webm" => "video/webm", + ".webp" => "image/webp", + _ => "application/octet-stream", + }); + __httpRequestContent.Add( + content: __contentFile, + name: "\"file\"", + fileName: request.Filename != null ? $"\"{request.Filename}\"" : string.Empty); + if (__contentFile.Headers.ContentDisposition != null) + { + __contentFile.Headers.ContentDisposition.FileNameStar = null; + } + + } + if (request.Url != default) + { + + __httpRequestContent.Add( + content: new global::System.Net.Http.StringContent(request.Url ?? string.Empty), + name: "\"url\""); + + } + __httpRequest.Content = __httpRequestContent; + global::LabelStudio.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers, @@ -455,82 +520,41 @@ partial void ProcessApiLearningResourcesUploadCreateResponseContent( } } /// - /// ✨ Upload a file for a learning resource
+ /// ✨ Upload or import a file for a learning resource
/// <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>
- /// Upload a file asset for use in a learning resource. + /// Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. ///
/// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// * `minutes` - Minutes
- /// * `hours` - Hours
- /// * `days` - Days
- /// * `weeks` - Weeks - /// - /// - /// - /// - /// - /// - /// - /// + /// + /// + /// + /// + /// /// 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 ApiLearningResourcesUploadCreateAsync( int id, - bool? allowStandalone = default, - string? color = default, - string? coverImageUrl = default, - bool? defaultAllowManualAccess = default, - bool? defaultGateAnnotatorDataManager = default, - bool? defaultGateAnnotatorLabelStream = default, - bool? defaultGateReviewerDataManager = default, - bool? defaultGateReviewerLabelStream = default, - bool? defaultGateReviewerReviewStream = default, - global::LabelStudio.EstimatedDurationUnitEnum? estimatedDurationUnit = default, - int? estimatedDurationValue = default, - bool? generateCertificateOnCompletion = default, - bool? hideCompletedQuizzes = default, - bool? singlePageReview = default, - string? summary = default, - string? title = default, - int? workspace = default, + bool? allowExternal = default, + bool? dryRun = default, + byte[]? file = default, + string? filename = default, + string? url = default, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::LabelStudio.LearningResourceRequest + var __request = new global::LabelStudio.ApiLearningResourcesUploadCreateRequest { - AllowStandalone = allowStandalone, - Color = color, - CoverImageUrl = coverImageUrl, - DefaultAllowManualAccess = defaultAllowManualAccess, - DefaultGateAnnotatorDataManager = defaultGateAnnotatorDataManager, - DefaultGateAnnotatorLabelStream = defaultGateAnnotatorLabelStream, - DefaultGateReviewerDataManager = defaultGateReviewerDataManager, - DefaultGateReviewerLabelStream = defaultGateReviewerLabelStream, - DefaultGateReviewerReviewStream = defaultGateReviewerReviewStream, - EstimatedDurationUnit = estimatedDurationUnit, - EstimatedDurationValue = estimatedDurationValue, - GenerateCertificateOnCompletion = generateCertificateOnCompletion, - HideCompletedQuizzes = hideCompletedQuizzes, - SinglePageReview = singlePageReview, - Summary = summary, - Title = title, - Workspace = workspace, + AllowExternal = allowExternal, + DryRun = dryRun, + File = file, + Filename = filename, + Url = url, }; return await ApiLearningResourcesUploadCreateAsync( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.Json.g.cs new file mode 100644 index 00000000..18c9591a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiLearningResourcesImportCreateRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiLearningResourcesImportCreateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiLearningResourcesImportCreateRequest), + jsonSerializerContext) as global::LabelStudio.ApiLearningResourcesImportCreateRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.ApiLearningResourcesImportCreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.ApiLearningResourcesImportCreateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.ApiLearningResourcesImportCreateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiLearningResourcesImportCreateRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.g.cs new file mode 100644 index 00000000..ffb36ab6 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesImportCreateRequest.g.cs @@ -0,0 +1,74 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiLearningResourcesImportCreateRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] File { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace")] + [global::System.Text.Json.Serialization.JsonRequired] + public required 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. + /// + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLearningResourcesImportCreateRequest( + byte[] file, + string filename, + int workspace, + string? title) + { + this.File = file ?? throw new global::System.ArgumentNullException(nameof(file)); + this.Filename = filename ?? throw new global::System.ArgumentNullException(nameof(filename)); + this.Title = title; + this.Workspace = workspace; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLearningResourcesImportCreateRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.Json.g.cs new file mode 100644 index 00000000..00a770f0 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiLearningResourcesUploadCreateRequest + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiLearningResourcesUploadCreateRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiLearningResourcesUploadCreateRequest), + jsonSerializerContext) as global::LabelStudio.ApiLearningResourcesUploadCreateRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.ApiLearningResourcesUploadCreateRequest? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.ApiLearningResourcesUploadCreateRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.ApiLearningResourcesUploadCreateRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiLearningResourcesUploadCreateRequest; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.g.cs new file mode 100644 index 00000000..adf9f5d2 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLearningResourcesUploadCreateRequest.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiLearningResourcesUploadCreateRequest + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allow_external")] + public bool? AllowExternal { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dry_run")] + public bool? DryRun { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("file")] + public byte[]? File { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filename")] + public string? Filename { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { 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 ApiLearningResourcesUploadCreateRequest( + bool? allowExternal, + bool? dryRun, + byte[]? file, + string? filename, + string? url) + { + this.AllowExternal = allowExternal; + this.DryRun = dryRun; + this.File = file; + this.Filename = filename; + this.Url = url; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLearningResourcesUploadCreateRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.Json.g.cs new file mode 100644 index 00000000..e98ed4e0 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayload + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayload? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayload), + jsonSerializerContext) as global::LabelStudio.CourseExportPayload; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayload? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayload? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayload), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayload; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.g.cs new file mode 100644 index 00000000..36be8390 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayload.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// OpenAPI shape of GET /learning-resources/{id}/export/ (also the file Import accepts). + /// + public sealed partial class CourseExportPayload + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("course")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Course { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("exported_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime ExportedAt { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Format { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("format_version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int FormatVersion { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Modules { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + public object? Source { 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 CourseExportPayload( + object course, + global::System.DateTime exportedAt, + string format, + int formatVersion, + global::System.Collections.Generic.IList modules, + object? source) + { + this.Course = course ?? throw new global::System.ArgumentNullException(nameof(course)); + this.ExportedAt = exportedAt; + this.Format = format ?? throw new global::System.ArgumentNullException(nameof(format)); + this.FormatVersion = formatVersion; + this.Modules = modules ?? throw new global::System.ArgumentNullException(nameof(modules)); + this.Source = source; + } + + /// + /// Initializes a new instance of the class. + /// + public CourseExportPayload() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.Json.g.cs new file mode 100644 index 00000000..a4b44ded --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadCourse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadCourse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadCourse), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadCourse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadCourse? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadCourse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadCourse), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadCourse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.g.cs new file mode 100644 index 00000000..615ecd0a --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadCourse + { + + /// + /// 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.CourseExportPayloadCourse2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse2.Json.g.cs new file mode 100644 index 00000000..1854479e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadCourse2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadCourse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadCourse2), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadCourse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadCourse2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadCourse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadCourse2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadCourse2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse2.g.cs new file mode 100644 index 00000000..75257e4d --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadCourse2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadCourse2 + { + + /// + /// 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.CourseExportPayloadModule.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule.Json.g.cs new file mode 100644 index 00000000..80ad8b86 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadModule + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadModule? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadModule), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadModule; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadModule? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadModule? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadModule), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadModule; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule.g.cs new file mode 100644 index 00000000..b8868060 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadModule + { + + /// + /// 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.CourseExportPayloadModule2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule2.Json.g.cs new file mode 100644 index 00000000..19fd52bd --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadModule2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadModule2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadModule2), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadModule2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadModule2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadModule2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadModule2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadModule2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule2.g.cs new file mode 100644 index 00000000..710bd75b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadModule2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadModule2 + { + + /// + /// 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.CourseExportPayloadSource.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource.Json.g.cs new file mode 100644 index 00000000..61d86284 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadSource + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadSource? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadSource), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadSource; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadSource? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadSource? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadSource), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadSource; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource.g.cs new file mode 100644 index 00000000..04f1e9fa --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadSource + { + + /// + /// 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.CourseExportPayloadSource2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource2.Json.g.cs new file mode 100644 index 00000000..8f3d62c7 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseExportPayloadSource2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadSource2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseExportPayloadSource2), + jsonSerializerContext) as global::LabelStudio.CourseExportPayloadSource2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseExportPayloadSource2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseExportPayloadSource2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseExportPayloadSource2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseExportPayloadSource2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource2.g.cs new file mode 100644 index 00000000..52301672 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseExportPayloadSource2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseExportPayloadSource2 + { + + /// + /// 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.CourseImportResponse.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponse.Json.g.cs new file mode 100644 index 00000000..2d3c1159 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseImportResponse + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseImportResponse), + jsonSerializerContext) as global::LabelStudio.CourseImportResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponse? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseImportResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseImportResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseImportResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponse.g.cs new file mode 100644 index 00000000..2c2fb05f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponse.g.cs @@ -0,0 +1,410 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseImportResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allow_standalone")] + public bool? AllowStandalone { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("color")] + public string? Color { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public object Content { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("content_version")] + public int ContentVersion { get; set; } = default!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cover_image_url")] + public string? CoverImageUrl { 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!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_allow_manual_access")] + public bool? DefaultAllowManualAccess { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_gate_annotator_data_manager")] + public bool? DefaultGateAnnotatorDataManager { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_gate_annotator_label_stream")] + public bool? DefaultGateAnnotatorLabelStream { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_gate_reviewer_data_manager")] + public bool? DefaultGateReviewerDataManager { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_gate_reviewer_label_stream")] + public bool? DefaultGateReviewerLabelStream { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default_gate_reviewer_review_stream")] + public bool? DefaultGateReviewerReviewStream { get; set; } + + /// + /// * `minutes` - Minutes
+ /// * `hours` - Hours
+ /// * `days` - Days
+ /// * `weeks` - Weeks + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("estimated_duration_unit")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.EstimatedDurationUnitEnumJsonConverter))] + public global::LabelStudio.EstimatedDurationUnitEnum? EstimatedDurationUnit { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimated_duration_value")] + public int? EstimatedDurationValue { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generate_certificate_on_completion")] + public bool? GenerateCertificateOnCompletion { get; set; } + + /// + /// Included only in responses + /// + [global::System.Text.Json.Serialization.JsonPropertyName("has_unpublished_changes")] + public bool? HasUnpublishedChanges { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hide_completed_quizzes")] + public bool? HideCompletedQuizzes { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("is_published")] + public bool IsPublished { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("learner_count")] + public int LearnerCount { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("learners_completed_count")] + public int LearnersCompletedCount { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("learners_started_count")] + public int LearnersStartedCount { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("module_count")] + public int ModuleCount { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("organization")] + public int Organization { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("page_count")] + public int PageCount { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("project_count")] + public int ProjectCount { get; set; } = default!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("single_page_review")] + public bool? SinglePageReview { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("structure_version")] + public int StructureVersion { get; set; } = default!; + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("summary")] + public string? Summary { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("unresolved_asset_ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList UnresolvedAssetIds { get; set; } + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + public global::System.DateTime UpdatedAt { get; set; } = default!; + + /// + /// Included only in responses + /// + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("updated_by")] + public global::LabelStudio.UserSimple UpdatedBy { get; set; } = default!; + + /// + /// + /// + [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. + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// * `minutes` - Minutes
+ /// * `hours` - Hours
+ /// * `days` - Days
+ /// * `weeks` - Weeks + /// + /// + /// + /// + /// Included only in responses + /// + /// + /// + /// + /// + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// Included only in responses + /// + /// + /// 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 CourseImportResponse( + global::System.Collections.Generic.IList unresolvedAssetIds, + bool? allowStandalone, + string? color, + string? coverImageUrl, + bool? defaultAllowManualAccess, + bool? defaultGateAnnotatorDataManager, + bool? defaultGateAnnotatorLabelStream, + bool? defaultGateReviewerDataManager, + bool? defaultGateReviewerLabelStream, + bool? defaultGateReviewerReviewStream, + global::LabelStudio.EstimatedDurationUnitEnum? estimatedDurationUnit, + int? estimatedDurationValue, + bool? generateCertificateOnCompletion, + bool? hasUnpublishedChanges, + bool? hideCompletedQuizzes, + bool? singlePageReview, + string? summary, + string? title, + int? workspace, + object content = default!, + int contentVersion = default!, + global::System.DateTime createdAt = default!, + global::LabelStudio.UserSimple createdBy = default!, + int id = default!, + bool isPublished = default!, + int learnerCount = default!, + int learnersCompletedCount = default!, + int learnersStartedCount = default!, + int moduleCount = default!, + int organization = default!, + int pageCount = default!, + int projectCount = default!, + int structureVersion = default!, + global::System.DateTime updatedAt = default!, + global::LabelStudio.UserSimple updatedBy = default!) + { + this.AllowStandalone = allowStandalone; + this.Color = color; + this.Content = content; + this.ContentVersion = contentVersion; + this.CoverImageUrl = coverImageUrl; + this.CreatedAt = createdAt; + this.CreatedBy = createdBy; + this.DefaultAllowManualAccess = defaultAllowManualAccess; + this.DefaultGateAnnotatorDataManager = defaultGateAnnotatorDataManager; + this.DefaultGateAnnotatorLabelStream = defaultGateAnnotatorLabelStream; + this.DefaultGateReviewerDataManager = defaultGateReviewerDataManager; + this.DefaultGateReviewerLabelStream = defaultGateReviewerLabelStream; + this.DefaultGateReviewerReviewStream = defaultGateReviewerReviewStream; + this.EstimatedDurationUnit = estimatedDurationUnit; + this.EstimatedDurationValue = estimatedDurationValue; + this.GenerateCertificateOnCompletion = generateCertificateOnCompletion; + this.HasUnpublishedChanges = hasUnpublishedChanges; + this.HideCompletedQuizzes = hideCompletedQuizzes; + this.Id = id; + this.IsPublished = isPublished; + this.LearnerCount = learnerCount; + this.LearnersCompletedCount = learnersCompletedCount; + this.LearnersStartedCount = learnersStartedCount; + this.ModuleCount = moduleCount; + this.Organization = organization; + this.PageCount = pageCount; + this.ProjectCount = projectCount; + this.SinglePageReview = singlePageReview; + this.StructureVersion = structureVersion; + this.Summary = summary; + this.Title = title; + this.UnresolvedAssetIds = unresolvedAssetIds ?? throw new global::System.ArgumentNullException(nameof(unresolvedAssetIds)); + this.UpdatedAt = updatedAt; + this.UpdatedBy = updatedBy; + this.Workspace = workspace; + } + + /// + /// Initializes a new instance of the class. + /// + public CourseImportResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.Json.g.cs new file mode 100644 index 00000000..cf518ecf --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseImportResponseContent + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponseContent? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseImportResponseContent), + jsonSerializerContext) as global::LabelStudio.CourseImportResponseContent; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponseContent? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseImportResponseContent? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseImportResponseContent), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseImportResponseContent; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.g.cs new file mode 100644 index 00000000..d77db462 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Included only in responses + /// + public sealed partial class CourseImportResponseContent + { + + /// + /// 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.CourseImportResponseContent2.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent2.Json.g.cs new file mode 100644 index 00000000..f455178b --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class CourseImportResponseContent2 + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponseContent2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.CourseImportResponseContent2), + jsonSerializerContext) as global::LabelStudio.CourseImportResponseContent2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.CourseImportResponseContent2? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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.CourseImportResponseContent2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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.CourseImportResponseContent2), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.CourseImportResponseContent2; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent2.g.cs new file mode 100644 index 00000000..3e13cbb9 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.CourseImportResponseContent2.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class CourseImportResponseContent2 + { + + /// + /// 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.LearningResourceUploadResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponse.g.cs index e110b59a..b87b79bb 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponse.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponse.g.cs @@ -8,6 +8,18 @@ namespace LabelStudio /// public sealed partial class LearningResourceUploadResponse { + /// + /// * `uploaded` - uploaded
+ /// * `imported` - imported
+ /// * `unchanged` - unchanged
+ /// * `importable` - importable
+ /// * `external` - external + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.LearningResourceUploadResponseStatusEnumJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::LabelStudio.LearningResourceUploadResponseStatusEnum Status { get; set; } + /// /// /// @@ -24,13 +36,22 @@ public sealed partial class LearningResourceUploadResponse /// /// Initializes a new instance of the class. /// + /// + /// * `uploaded` - uploaded
+ /// * `imported` - imported
+ /// * `unchanged` - unchanged
+ /// * `importable` - importable
+ /// * `external` - external + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LearningResourceUploadResponse( + global::LabelStudio.LearningResourceUploadResponseStatusEnum status, string url) { + this.Status = status; this.Url = url ?? throw new global::System.ArgumentNullException(nameof(url)); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponseStatusEnum.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponseStatusEnum.g.cs new file mode 100644 index 00000000..3d434f7f --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LearningResourceUploadResponseStatusEnum.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// * `uploaded` - uploaded
+ /// * `imported` - imported
+ /// * `unchanged` - unchanged
+ /// * `importable` - importable
+ /// * `external` - external + ///
+ public enum LearningResourceUploadResponseStatusEnum + { + /// + /// + /// + External, + /// + /// + /// + Importable, + /// + /// + /// + Imported, + /// + /// + /// + Unchanged, + /// + /// + /// + Uploaded, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class LearningResourceUploadResponseStatusEnumExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this LearningResourceUploadResponseStatusEnum value) + { + return value switch + { + LearningResourceUploadResponseStatusEnum.External => "external", + LearningResourceUploadResponseStatusEnum.Importable => "importable", + LearningResourceUploadResponseStatusEnum.Imported => "imported", + LearningResourceUploadResponseStatusEnum.Unchanged => "unchanged", + LearningResourceUploadResponseStatusEnum.Uploaded => "uploaded", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static LearningResourceUploadResponseStatusEnum? ToEnum(string value) + { + return value switch + { + "external" => LearningResourceUploadResponseStatusEnum.External, + "importable" => LearningResourceUploadResponseStatusEnum.Importable, + "imported" => LearningResourceUploadResponseStatusEnum.Imported, + "unchanged" => LearningResourceUploadResponseStatusEnum.Unchanged, + "uploaded" => LearningResourceUploadResponseStatusEnum.Uploaded, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseUserSerializerUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseUserSerializerUpdateRequest.g.cs index c692e40b..1d471fa4 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseUserSerializerUpdateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseUserSerializerUpdateRequest.g.cs @@ -23,6 +23,13 @@ public sealed partial class PatchedLseUserSerializerUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("allow_newsletters")] public bool? AllowNewsletters { get; set; } + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("current_password")] + public string? CurrentPassword { get; set; } + /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -90,6 +97,10 @@ public sealed partial class PatchedLseUserSerializerUpdateRequest /// /// Allow sending newsletters to user /// + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + /// /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -115,6 +126,7 @@ public sealed partial class PatchedLseUserSerializerUpdateRequest public PatchedLseUserSerializerUpdateRequest( int? activeOrganization, bool? allowNewsletters, + string? currentPassword, object? customHotkeys, global::System.DateTime? dateJoined, object? emailNotificationSettings, @@ -127,6 +139,7 @@ public PatchedLseUserSerializerUpdateRequest( { this.ActiveOrganization = activeOrganization; this.AllowNewsletters = allowNewsletters; + this.CurrentPassword = currentPassword; this.CustomHotkeys = customHotkeys; this.DateJoined = dateJoined; this.EmailNotificationSettings = emailNotificationSettings; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs index e20ed24b..05ad0994 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.Update.g.cs @@ -454,6 +454,10 @@ partial void ProcessUpdateResponseContent( /// /// Allow sending newsletters to user /// + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + /// /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -480,6 +484,7 @@ partial void ProcessUpdateResponseContent( int id, int? activeOrganization = default, bool? allowNewsletters = default, + string? currentPassword = default, object? customHotkeys = default, global::System.DateTime? dateJoined = default, object? emailNotificationSettings = default, @@ -496,6 +501,7 @@ partial void ProcessUpdateResponseContent( { ActiveOrganization = activeOrganization, AllowNewsletters = allowNewsletters, + CurrentPassword = currentPassword, CustomHotkeys = customHotkeys, DateJoined = dateJoined, EmailNotificationSettings = emailNotificationSettings, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs index 6581cc73..e8c61285 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.UsersClient.UpdateCurrentUser.g.cs @@ -459,6 +459,10 @@ partial void ProcessUpdateCurrentUserResponseContent( /// /// Allow sending newsletters to user /// + /// + /// Your current password. Required when you change your own password.
+ /// Included only in requests + /// /// /// Custom keyboard shortcuts configuration for the user interface /// @@ -484,6 +488,7 @@ partial void ProcessUpdateCurrentUserResponseContent( public async global::System.Threading.Tasks.Task UpdateCurrentUserAsync( int? activeOrganization = default, bool? allowNewsletters = default, + string? currentPassword = default, object? customHotkeys = default, global::System.DateTime? dateJoined = default, object? emailNotificationSettings = default, @@ -500,6 +505,7 @@ partial void ProcessUpdateCurrentUserResponseContent( { ActiveOrganization = activeOrganization, AllowNewsletters = allowNewsletters, + CurrentPassword = currentPassword, CustomHotkeys = customHotkeys, DateJoined = dateJoined, EmailNotificationSettings = emailNotificationSettings, diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index e892eae7..d5e6e11f 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -4993,6 +4993,45 @@ paths: summary: ✨ Batch learning resource counts tags: - Learning Resources + /api/learning-resources/import/: + 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 an unpublished course in a workspace from an exported course file: the JSON payload, or the zip bundle that also carries its files. Files in a bundle become the new course's own assets. Other asset ids are only valid in the organization and instance the file was exported from. In that case asset URLs are kept and `unresolved_asset_ids` lists the ones that do not exist in this organization. For any other file (another organization or instance, or no source recorded) every asset id that is not bundled is listed as unresolved and its URL is detached so it cannot resolve to an asset here. + operationId: api_learning_resources_import_create + requestBody: + content: + multipart/form-data: + schema: + properties: + file: + format: binary + type: string + title: + type: string + workspace: + type: integer + required: + - file + - workspace + type: object + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CourseImportResponse' + description: '' + security: + - Token: [] + summary: ✨ Import a learning resource + tags: + - Learning Resources /api/learning-resources/{id}/: delete: operationId: api_learning_resources_destroy @@ -5292,6 +5331,58 @@ paths: summary: ✨ Heartbeat or release an editing session for a learning resource tags: - Learning Resources + /api/learning-resources/{id}/export/: + 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 the draft course (settings, modules, pages) as a portable JSON payload for Import. With any of `include_images`, `include_audio_video` and `include_other` the response is a zip instead: `course.json` (the same payload), `assets.json` and the referenced files under `assets/`. References that cannot be bundled are counted in the `X-Course-Export-Skipped-Assets` header. + operationId: api_learning_resources_export_retrieve + parameters: + - description: A unique integer value identifying this learning resource. + in: path + name: id + required: true + schema: + type: integer + - description: Bundle the audio and video files the course references. Returns a zip. + in: query + name: include_audio_video + schema: + default: false + type: boolean + - description: Bundle the images the course references. Returns a zip. + in: query + name: include_images + schema: + default: false + type: boolean + - description: Bundle the other files (documents, etc.) the course references. Returns a zip. + in: query + name: include_other + schema: + default: false + type: boolean + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CourseExportPayload' + application/zip: + schema: + format: binary + type: string + description: '' + security: + - Token: [] + summary: ✨ Export a learning resource + tags: + - Learning Resources /api/learning-resources/{id}/invalidate-progress/: post: description: |- @@ -5960,7 +6051,7 @@ paths: This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)

- Upload a file asset for use in a learning resource. + Upload a new file, or import media already reachable elsewhere (an asset from another course, a project upload, or — with `allow_external` — any http(s) URL) as a CourseAsset served from this origin. Exactly one of `file`/`url` is required; `allow_external` and `dry_run` are only valid with `url`. `dry_run` classifies the URL without creating anything. A source that does not exist and one you may not read both answer 403. operationId: api_learning_resources_upload_create parameters: - description: A unique integer value identifying this learning resource. @@ -5971,15 +6062,19 @@ paths: type: integer requestBody: content: - application/json: - schema: - $ref: '#/components/schemas/LearningResourceRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/LearningResourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/LearningResourceRequest' + properties: + allow_external: + type: boolean + dry_run: + type: boolean + file: + format: binary + type: string + url: + type: string + type: object responses: '200': content: @@ -5989,7 +6084,7 @@ paths: description: '' security: - Token: [] - summary: ✨ Upload a file for a learning resource + summary: ✨ Upload or import a file for a learning resource tags: - Learning Resources /api/learning-resources/{id}/user-progress/: @@ -26879,6 +26974,167 @@ components: - sessions - structure_version type: object + CourseExportPayload: + description: OpenAPI shape of GET /learning-resources/{id}/export/ (also the file Import accepts). + properties: + course: + additionalProperties: {} + type: object + exported_at: + format: date-time + type: string + format: + type: string + format_version: + type: integer + modules: + items: + additionalProperties: {} + type: object + type: array + source: + additionalProperties: {} + nullable: true + type: object + required: + - course + - exported_at + - format + - format_version + - modules + - source + type: object + CourseImportResponse: + properties: + allow_standalone: + type: boolean + color: + maxLength: 16 + nullable: true + type: string + content: + additionalProperties: {} + readOnly: true + type: object + content_version: + readOnly: true + type: integer + cover_image_url: + maxLength: 1024 + type: string + created_at: + format: date-time + readOnly: true + type: string + created_by: + allOf: + - $ref: '#/components/schemas/UserSimple' + readOnly: true + default_allow_manual_access: + type: boolean + default_gate_annotator_data_manager: + nullable: true + type: boolean + default_gate_annotator_label_stream: + nullable: true + type: boolean + default_gate_reviewer_data_manager: + nullable: true + type: boolean + default_gate_reviewer_label_stream: + nullable: true + type: boolean + default_gate_reviewer_review_stream: + nullable: true + type: boolean + estimated_duration_unit: + $ref: '#/components/schemas/EstimatedDurationUnitEnum' + estimated_duration_value: + maximum: 2147483647 + minimum: 0 + nullable: true + type: integer + generate_certificate_on_completion: + type: boolean + has_unpublished_changes: + nullable: true + readOnly: true + type: boolean + hide_completed_quizzes: + type: boolean + id: + readOnly: true + type: integer + is_published: + readOnly: true + type: boolean + learner_count: + readOnly: true + type: integer + learners_completed_count: + readOnly: true + type: integer + learners_started_count: + readOnly: true + type: integer + module_count: + readOnly: true + type: integer + organization: + readOnly: true + type: integer + page_count: + readOnly: true + type: integer + project_count: + readOnly: true + type: integer + single_page_review: + nullable: true + type: boolean + structure_version: + readOnly: true + type: integer + summary: + type: string + title: + maxLength: 255 + type: string + unresolved_asset_ids: + items: + type: integer + type: array + updated_at: + format: date-time + readOnly: true + type: string + updated_by: + allOf: + - $ref: '#/components/schemas/UserSimple' + readOnly: true + workspace: + nullable: true + type: integer + required: + - content + - content_version + - created_at + - created_by + - has_unpublished_changes + - id + - is_published + - learner_count + - learners_completed_count + - learners_started_count + - module_count + - organization + - page_count + - project_count + - structure_version + - unresolved_asset_ids + - updated_at + - updated_by + type: object CourseModule: properties: content: {} @@ -31593,12 +31849,29 @@ components: type: object LearningResourceUploadResponse: properties: + status: + $ref: '#/components/schemas/LearningResourceUploadResponseStatusEnum' url: format: uri type: string required: + - status - url type: object + LearningResourceUploadResponseStatusEnum: + description: |- + * `uploaded` - uploaded + * `imported` - imported + * `unchanged` - unchanged + * `importable` - importable + * `external` - external + enum: + - uploaded + - imported + - unchanged + - importable + - external + type: string LocalFilesExportStorage: properties: can_delete_objects: @@ -40157,6 +40430,11 @@ components: description: Allow sending newsletters to user nullable: true type: boolean + current_password: + description: Your current password. Required when you change your own password. + minLength: 1 + type: string + writeOnly: true custom_hotkeys: description: Custom keyboard shortcuts configuration for the user interface nullable: true