From 275e870cc39bf11fc22bde8059b2309cc864ba04 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 12 Nov 2026 17:23:49 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ent.ApiLlmOpenaiChatCompletionsCreate.g.cs | 4 +++ .../LabelStudio.IProjects2Client.Create.g.cs | 2 -- .../LabelStudio.IProjects2Client.Update.g.cs | 2 -- ...ent.ApiLlmOpenaiChatCompletionsCreate.g.cs | 5 ++++ ...abelStudio.Models.AllRolesProjectList.g.cs | 11 +++++--- ...o.Models.ChatCompletionRequestRequest.g.cs | 14 +++++++++- .../LabelStudio.Models.LseProject.g.cs | 11 +++++--- .../LabelStudio.Models.LseProjectCreate.g.cs | 6 +++-- ...Studio.Models.LseProjectCreateRequest.g.cs | 9 ------- ...LabelStudio.Models.LseProjectResponse.g.cs | 11 +++++--- ...Models.PatchedLseProjectUpdateRequest.g.cs | 9 ------- .../Generated/LabelStudio.Models.Project.g.cs | 11 +++++--- .../LabelStudio.Projects2Client.Create.g.cs | 3 --- .../LabelStudio.Projects2Client.Update.g.cs | 3 --- src/libs/LabelStudio/openapi.yaml | 26 +++++++++++-------- 15 files changed, 69 insertions(+), 58 deletions(-) diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index 2b88fcc7..4724276b 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -40,12 +40,16 @@ public partial interface ILlmClient /// /// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4") /// + /// + /// ID of a project the caller can access whose labeling config contains a Chat tag + /// /// 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 ApiLlmOpenaiChatCompletionsCreateAsync( global::System.Collections.Generic.IList messages, string model, + int project, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs index 66bbb447..b7a65dc8 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Create.g.cs @@ -99,7 +99,6 @@ public partial interface IProjects2Client /// /// Machine learning model version /// - /// /// /// /// @@ -177,7 +176,6 @@ public partial interface IProjects2Client int? maximumAnnotations = default, int? minAnnotationsToStartTraining = default, string? modelVersion = default, - int? organization = default, object? outputSchema = default, int? overlapCohortPercentage = default, global::System.DateTime? pinnedAt = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs index 460b78f4..7a8dbcbd 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.IProjects2Client.Update.g.cs @@ -164,7 +164,6 @@ public partial interface IProjects2Client /// /// Machine learning model version /// - /// /// /// /// Annotations per task coverage @@ -278,7 +277,6 @@ public partial interface IProjects2Client int? maximumAnnotations = default, int? minAnnotationsToStartTraining = default, string? modelVersion = default, - int? organization = default, object? outputSchema = default, int? overlapCohortPercentage = default, bool? pauseOnFailedAnnotatorEvaluation = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index 44d029c7..83a50452 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -480,12 +480,16 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( /// /// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4") /// + /// + /// ID of a project the caller can access whose labeling config contains a Chat tag + /// /// 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 ApiLlmOpenaiChatCompletionsCreateAsync( global::System.Collections.Generic.IList messages, string model, + int project, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -493,6 +497,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( { Messages = messages, Model = model, + Project = project, }; return await ApiLlmOpenaiChatCompletionsCreateAsync( diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs index 4876714f..4a152b9f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.AllRolesProjectList.g.cs @@ -371,10 +371,11 @@ public sealed partial class AllRolesProjectList public int? NumTasksWithAnnotations { get; set; } /// - /// + /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } + public int Organization { get; set; } = default!; /// /// @@ -799,7 +800,6 @@ public sealed partial class AllRolesProjectList /// Tasks with at least one annotation. For annotators, counts only tasks this user annotated; for other roles, counts project-wide. For analytics, use annotated_tasks or related KPIs with explicit project/member filters.
/// Included only in responses /// - /// /// /// /// Annotations per task coverage @@ -936,6 +936,9 @@ public sealed partial class AllRolesProjectList /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// JSON-formatted labeling configuration
/// Included only in responses @@ -1021,7 +1024,6 @@ public AllRolesProjectList( int? minAnnotationsToStartTraining, string? modelVersion, int? numTasksWithAnnotations, - int? organization, object? outputSchema, int? overlapCohortPercentage, bool? pauseOnFailedAnnotatorEvaluation, @@ -1065,6 +1067,7 @@ public AllRolesProjectList( bool isOnboardingProject = default!, global::System.Collections.Generic.IList members = default!, int membersCount = default!, + int organization = default!, object parsedLabelConfig = default!, int queueDone = default!, int queueTotal = default!, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChatCompletionRequestRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ChatCompletionRequestRequest.g.cs index 12c482f9..d7bb9184 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ChatCompletionRequestRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ChatCompletionRequestRequest.g.cs @@ -26,6 +26,13 @@ public sealed partial class ChatCompletionRequestRequest [global::System.Text.Json.Serialization.JsonRequired] public required string Model { get; set; } + /// + /// ID of a project the caller can access whose labeling config contains a Chat tag + /// + [global::System.Text.Json.Serialization.JsonPropertyName("project")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Project { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,15 +48,20 @@ public sealed partial class ChatCompletionRequestRequest /// /// Model identifier in format "provider/model-name" (e.g., "openai/gpt-4") /// + /// + /// ID of a project the caller can access whose labeling config contains a Chat tag + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ChatCompletionRequestRequest( global::System.Collections.Generic.IList messages, - string model) + string model, + int project) { this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Project = project; } /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs index dafba596..5a2f7957 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProject.g.cs @@ -343,10 +343,11 @@ public sealed partial class LseProject public int? NumTasksWithAnnotations { get; set; } /// - /// + /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } + public int Organization { get; set; } = default!; /// /// @@ -765,7 +766,6 @@ public sealed partial class LseProject /// /// Included only in responses /// - /// /// /// /// Annotations per task coverage @@ -877,6 +877,9 @@ public sealed partial class LseProject /// /// Included only in responses /// + /// + /// Included only in responses + /// /// /// JSON-formatted labeling configuration
/// Included only in responses @@ -975,7 +978,6 @@ public LseProject( int? minAnnotationsToStartTraining, string? modelVersion, int? numTasksWithAnnotations, - int? organization, object? outputSchema, int? overlapCohortPercentage, bool? pauseOnFailedAnnotatorEvaluation, @@ -1012,6 +1014,7 @@ public LseProject( bool isDimensionsEnabled = default!, global::System.Collections.Generic.IList members = default!, int membersCount = default!, + int organization = default!, object parsedLabelConfig = default!, global::System.Collections.Generic.IList permissions = default!, int queueDone = default!, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs index 7cce616a..39036f77 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreate.g.cs @@ -200,7 +200,7 @@ public sealed partial class LseProjectCreate public int? NumTasksWithAnnotations { get; set; } /// - /// + /// Included only in responses /// [global::System.Text.Json.Serialization.JsonPropertyName("organization")] public int? Organization { get; set; } @@ -468,7 +468,9 @@ public sealed partial class LseProjectCreate /// Tasks with annotations count
/// Included only in responses /// - /// + /// + /// Included only in responses + /// /// /// /// diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs index 34efe104..5dc6fc61 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectCreateRequest.g.cs @@ -154,12 +154,6 @@ public sealed partial class LseProjectCreateRequest [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] public string? ModelVersion { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - /// /// /// @@ -363,7 +357,6 @@ public sealed partial class LseProjectCreateRequest /// /// Machine learning model version /// - /// /// /// /// @@ -441,7 +434,6 @@ public LseProjectCreateRequest( int? maximumAnnotations, int? minAnnotationsToStartTraining, string? modelVersion, - int? organization, object? outputSchema, int? overlapCohortPercentage, global::System.DateTime? pinnedAt, @@ -486,7 +478,6 @@ public LseProjectCreateRequest( this.MaximumAnnotations = maximumAnnotations; this.MinAnnotationsToStartTraining = minAnnotationsToStartTraining; this.ModelVersion = modelVersion; - this.Organization = organization; this.OutputSchema = outputSchema; this.OverlapCohortPercentage = overlapCohortPercentage; this.PinnedAt = pinnedAt; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs index d54d5bd2..9f0e9c5a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.LseProjectResponse.g.cs @@ -351,10 +351,11 @@ public sealed partial class LseProjectResponse public int NumTasksWithAnnotations { get; set; } = default!; /// - /// + /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } + public int Organization { get; set; } = default!; /// /// @@ -791,7 +792,6 @@ public sealed partial class LseProjectResponse /// /// Machine learning model version /// - /// /// /// /// Annotations per task coverage @@ -932,6 +932,9 @@ public sealed partial class LseProjectResponse /// Tasks with at least one annotation. For annotators, counts only tasks this user annotated; for other roles, counts project-wide. For analytics, use annotated_tasks or related KPIs with explicit project/member filters.
/// Included only in responses /// + /// + /// Included only in responses + /// /// /// JSON-formatted labeling configuration
/// Included only in responses @@ -1018,7 +1021,6 @@ public LseProjectResponse( int? maximumAnnotations, int? minAnnotationsToStartTraining, string? modelVersion, - int? organization, object? outputSchema, int? overlapCohortPercentage, bool? pauseOnFailedAnnotatorEvaluation, @@ -1063,6 +1065,7 @@ public LseProjectResponse( global::System.Collections.Generic.IList members = default!, int membersCount = default!, int numTasksWithAnnotations = default!, + int organization = default!, object parsedLabelConfig = default!, global::System.Collections.Generic.IList permissions = default!, int queueDone = default!, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs index 963a9d83..8969159a 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.PatchedLseProjectUpdateRequest.g.cs @@ -248,12 +248,6 @@ public sealed partial class PatchedLseProjectUpdateRequest [global::System.Text.Json.Serialization.JsonPropertyName("model_version")] public string? ModelVersion { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } - /// /// /// @@ -539,7 +533,6 @@ public sealed partial class PatchedLseProjectUpdateRequest /// /// Machine learning model version /// - /// /// /// /// Annotations per task coverage @@ -651,7 +644,6 @@ public PatchedLseProjectUpdateRequest( int? maximumAnnotations, int? minAnnotationsToStartTraining, string? modelVersion, - int? organization, object? outputSchema, int? overlapCohortPercentage, bool? pauseOnFailedAnnotatorEvaluation, @@ -715,7 +707,6 @@ public PatchedLseProjectUpdateRequest( this.MaximumAnnotations = maximumAnnotations; this.MinAnnotationsToStartTraining = minAnnotationsToStartTraining; this.ModelVersion = modelVersion; - this.Organization = organization; this.OutputSchema = outputSchema; this.OverlapCohortPercentage = overlapCohortPercentage; this.PauseOnFailedAnnotatorEvaluation = pauseOnFailedAnnotatorEvaluation; diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.Project.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.Project.g.cs index fc703b5c..c111589c 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.Project.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.Project.g.cs @@ -150,10 +150,11 @@ public sealed partial class Project public int NumTasksWithAnnotations { get; set; } = default!; /// - /// + /// Included only in responses /// + /// default! [global::System.Text.Json.Serialization.JsonPropertyName("organization")] - public int? Organization { get; set; } + public int Organization { get; set; } = default!; /// /// @@ -368,7 +369,6 @@ public sealed partial class Project /// /// Machine learning model version /// - /// /// /// /// Pinned date and time @@ -426,6 +426,9 @@ public sealed partial class Project /// Tasks with annotations count
/// Included only in responses /// + /// + /// Included only in responses + /// /// /// JSON-formatted labeling configuration
/// Included only in responses @@ -481,7 +484,6 @@ public Project( int? maximumAnnotations, int? minAnnotationsToStartTraining, string? modelVersion, - int? organization, int? overlapCohortPercentage, global::System.DateTime? pinnedAt, bool? revealPreannotationsInteractively, @@ -502,6 +504,7 @@ public Project( int groundTruthNumber = default!, int id = default!, int numTasksWithAnnotations = default!, + int organization = default!, object parsedLabelConfig = default!, int queueDone = default!, int queueTotal = default!, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs index 32eed6f4..e9938b6f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Create.g.cs @@ -502,7 +502,6 @@ partial void ProcessCreateResponseContent( /// /// Machine learning model version /// - /// /// /// /// @@ -580,7 +579,6 @@ partial void ProcessCreateResponseContent( int? maximumAnnotations = default, int? minAnnotationsToStartTraining = default, string? modelVersion = default, - int? organization = default, object? outputSchema = default, int? overlapCohortPercentage = default, global::System.DateTime? pinnedAt = default, @@ -629,7 +627,6 @@ partial void ProcessCreateResponseContent( MaximumAnnotations = maximumAnnotations, MinAnnotationsToStartTraining = minAnnotationsToStartTraining, ModelVersion = modelVersion, - Organization = organization, OutputSchema = outputSchema, OverlapCohortPercentage = overlapCohortPercentage, PinnedAt = pinnedAt, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs index 58e58e2f..bc05c798 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Projects2Client.Update.g.cs @@ -580,7 +580,6 @@ partial void ProcessUpdateResponseContent( /// /// Machine learning model version /// - /// /// /// /// Annotations per task coverage @@ -694,7 +693,6 @@ partial void ProcessUpdateResponseContent( int? maximumAnnotations = default, int? minAnnotationsToStartTraining = default, string? modelVersion = default, - int? organization = default, object? outputSchema = default, int? overlapCohortPercentage = default, bool? pauseOnFailedAnnotatorEvaluation = default, @@ -762,7 +760,6 @@ partial void ProcessUpdateResponseContent( MaximumAnnotations = maximumAnnotations, MinAnnotationsToStartTraining = minAnnotationsToStartTraining, ModelVersion = modelVersion, - Organization = organization, OutputSchema = outputSchema, OverlapCohortPercentage = overlapCohortPercentage, PauseOnFailedAnnotatorEvaluation = pauseOnFailedAnnotatorEvaluation, diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 032790a4..02a34802 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -24123,7 +24123,7 @@ components: readOnly: true type: integer organization: - nullable: true + readOnly: true type: integer output_schema: nullable: true @@ -24320,6 +24320,7 @@ components: - members - members_count - num_tasks_with_annotations + - organization - parsed_label_config - prompts - queue_done @@ -26518,9 +26519,13 @@ components: description: Model identifier in format "provider/model-name" (e.g., "openai/gpt-4") minLength: 1 type: string + project: + description: ID of a project the caller can access whose labeling config contains a Chat tag + type: integer required: - messages - model + - project type: object ChatMessageRequest: description: |- @@ -33368,7 +33373,7 @@ components: readOnly: true type: integer organization: - nullable: true + readOnly: true type: integer output_schema: nullable: true @@ -33559,6 +33564,7 @@ components: - members - members_count - num_tasks_with_annotations + - organization - parsed_label_config - permissions - prompts @@ -33823,8 +33829,9 @@ components: type: integer nullable: true organization: - nullable: true + readOnly: true type: integer + nullable: true output_schema: nullable: true overlap_cohort_percentage: @@ -33949,6 +33956,7 @@ components: - ground_truth_number - id - num_tasks_with_annotations + - organization - parsed_label_config - queue_done - queue_total @@ -34098,9 +34106,6 @@ components: description: Machine learning model version nullable: true type: string - organization: - nullable: true - type: integer output_schema: nullable: true overlap_cohort_percentage: @@ -34477,7 +34482,7 @@ components: readOnly: true type: integer organization: - nullable: true + readOnly: true type: integer output_schema: nullable: true @@ -34686,6 +34691,7 @@ components: - members - members_count - num_tasks_with_annotations + - organization - parsed_label_config - permissions - prompts @@ -40108,9 +40114,6 @@ components: description: Machine learning model version nullable: true type: string - organization: - nullable: true - type: integer output_schema: nullable: true overlap_cohort_percentage: @@ -41781,7 +41784,7 @@ components: readOnly: true type: integer organization: - nullable: true + readOnly: true type: integer overlap_cohort_percentage: maximum: 2147483647 @@ -41884,6 +41887,7 @@ components: - ground_truth_number - id - num_tasks_with_annotations + - organization - parsed_label_config - queue_done - queue_total