From af5200124f16b7c992ac7721678655608a018b2b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 8 Apr 2026 19:22:08 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Together.JsonSerializerContext.g.cs | 10 +- .../Together.JsonSerializerContextTypes.g.cs | 200 +++++++++--------- .../Generated/Together.Models.VideoMedia.g.cs | 17 +- src/libs/Together/openapi.yaml | 12 +- 4 files changed, 129 insertions(+), 110 deletions(-) diff --git a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs index 84c58c2..4483766 100644 --- a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs +++ b/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs @@ -637,6 +637,10 @@ namespace Together typeof(global::Together.JsonConverters.AnyOfJsonConverter), + typeof(global::Together.JsonConverters.OneOfJsonConverter), + + typeof(global::Together.JsonConverters.OneOfJsonConverter), + typeof(global::Together.JsonConverters.OneOfJsonConverter), typeof(global::Together.JsonConverters.OneOfJsonConverter), @@ -1109,7 +1113,9 @@ namespace Together [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoFrameImageInputFrame), TypeInfoPropertyName = "VideoFrameImageInputFrame2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoRef))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfStringVideoRef2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfStringAudioRef2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioRef))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoJob))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoJobError))] @@ -1264,7 +1270,7 @@ namespace Together [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs index 08b10b8..077b39d 100644 --- a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs +++ b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs @@ -1808,383 +1808,391 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type445 { get; set; } + public global::Together.OneOf? Type445 { get; set; } /// /// /// - public global::Together.AudioRef? Type446 { get; set; } + public global::System.Collections.Generic.IList>? Type446 { get; set; } /// /// /// - public global::Together.VideoJob? Type447 { get; set; } + public global::Together.OneOf? Type447 { get; set; } /// /// /// - public global::Together.VideoJobError? Type448 { get; set; } + public global::Together.AudioRef? Type448 { get; set; } /// /// /// - public global::Together.VideoJobOutputs? Type449 { get; set; } + public global::Together.VideoJob? Type449 { get; set; } /// /// /// - public global::Together.ContainerStatus? Type450 { get; set; } + public global::Together.VideoJobError? Type450 { get; set; } /// /// /// - public global::Together.CreateDeploymentRequest? Type451 { get; set; } + public global::Together.VideoJobOutputs? Type451 { get; set; } /// /// /// - public global::Together.OneOf? Type452 { get; set; } + public global::Together.ContainerStatus? Type452 { get; set; } /// /// /// - public global::Together.HTTPAutoscalingConfig? Type453 { get; set; } + public global::Together.CreateDeploymentRequest? Type453 { get; set; } /// /// /// - public global::Together.QueueAutoscalingConfig? Type454 { get; set; } + public global::Together.OneOf? Type454 { get; set; } /// /// /// - public global::Together.CustomMetricAutoscalingConfig? Type455 { get; set; } + public global::Together.HTTPAutoscalingConfig? Type455 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type456 { get; set; } + public global::Together.QueueAutoscalingConfig? Type456 { get; set; } /// /// /// - public global::Together.EnvironmentVariable? Type457 { get; set; } + public global::Together.CustomMetricAutoscalingConfig? Type457 { get; set; } /// /// /// - public global::Together.CreateDeploymentRequestGpuType? Type458 { get; set; } + public global::System.Collections.Generic.IList? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::Together.EnvironmentVariable? Type459 { get; set; } /// /// /// - public global::Together.VolumeMount? Type460 { get; set; } + public global::Together.CreateDeploymentRequestGpuType? Type460 { get; set; } /// /// /// - public global::Together.CreateSecretRequest? Type461 { get; set; } + public global::System.Collections.Generic.IList? Type461 { get; set; } /// /// /// - public global::Together.CreateVolumeRequest? Type462 { get; set; } + public global::Together.VolumeMount? Type462 { get; set; } /// /// /// - public global::Together.VolumeContentRequest? Type463 { get; set; } + public global::Together.CreateSecretRequest? Type463 { get; set; } /// /// /// - public global::Together.VolumeType? Type464 { get; set; } + public global::Together.CreateVolumeRequest? Type464 { get; set; } /// /// /// - public global::Together.DeploymentListResponse? Type465 { get; set; } + public global::Together.VolumeContentRequest? Type465 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type466 { get; set; } + public global::Together.VolumeType? Type466 { get; set; } /// /// /// - public global::Together.DeploymentResponseItem? Type467 { get; set; } + public global::Together.DeploymentListResponse? Type467 { get; set; } /// /// /// - public global::Together.DeploymentLogs? Type468 { get; set; } + public global::System.Collections.Generic.IList? Type468 { get; set; } /// /// /// - public global::Together.DeploymentResponseItemGpuType? Type469 { get; set; } + public global::Together.DeploymentResponseItem? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type470 { get; set; } + public global::Together.DeploymentLogs? Type470 { get; set; } /// /// /// - public global::Together.ReplicaEvent? Type471 { get; set; } + public global::Together.DeploymentResponseItemGpuType? Type471 { get; set; } /// /// /// - public global::Together.DeploymentStatus? Type472 { get; set; } + public global::System.Collections.Generic.Dictionary? Type472 { get; set; } /// /// /// - public global::Together.HTTPAutoscalingConfigMetric? Type473 { get; set; } + public global::Together.ReplicaEvent? Type473 { get; set; } /// /// /// - public global::Together.QueueAutoscalingConfigMetric? Type474 { get; set; } + public global::Together.DeploymentStatus? Type474 { get; set; } /// /// /// - public global::Together.CustomMetricAutoscalingConfigMetric? Type475 { get; set; } + public global::Together.HTTPAutoscalingConfigMetric? Type475 { get; set; } /// /// /// - public global::Together.KubernetesEvent? Type476 { get; set; } + public global::Together.QueueAutoscalingConfigMetric? Type476 { get; set; } /// /// /// - public global::Together.ListSecretsResponse? Type477 { get; set; } + public global::Together.CustomMetricAutoscalingConfigMetric? Type477 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type478 { get; set; } + public global::Together.KubernetesEvent? Type478 { get; set; } /// /// /// - public global::Together.SecretResponseItem? Type479 { get; set; } + public global::Together.ListSecretsResponse? Type479 { get; set; } /// /// /// - public global::Together.ListVolumesResponse? Type480 { get; set; } + public global::System.Collections.Generic.IList? Type480 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type481 { get; set; } + public global::Together.SecretResponseItem? Type481 { get; set; } /// /// /// - public global::Together.VolumeResponseItem? Type482 { get; set; } + public global::Together.ListVolumesResponse? Type482 { get; set; } /// /// /// - public global::Together.UpdateDeploymentRequest? Type483 { get; set; } + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// /// - public global::Together.UpdateDeploymentRequestGpuType? Type484 { get; set; } + public global::Together.VolumeResponseItem? Type484 { get; set; } /// /// /// - public global::Together.UpdateSecretRequest? Type485 { get; set; } + public global::Together.UpdateDeploymentRequest? Type485 { get; set; } /// /// /// - public global::Together.UpdateVolumeRequest? Type486 { get; set; } + public global::Together.UpdateDeploymentRequestGpuType? Type486 { get; set; } /// /// /// - public global::Together.VolumeContent? Type487 { get; set; } + public global::Together.UpdateSecretRequest? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type488 { get; set; } + public global::Together.UpdateVolumeRequest? Type488 { get; set; } /// /// /// - public global::Together.VersionHistoryItem? Type489 { get; set; } + public global::Together.VolumeContent? Type489 { get; set; } /// /// /// - public global::Together.VolumeContentRequestType? Type490 { get; set; } + public global::System.Collections.Generic.Dictionary? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::Together.VersionHistoryItem? Type491 { get; set; } /// /// /// - public global::Together.FileInfo? Type492 { get; set; } + public global::Together.VolumeContentRequestType? Type492 { get; set; } /// /// /// - public global::Together.VolumeContentType? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::Together.QueueError? Type494 { get; set; } + public global::Together.FileInfo? Type494 { get; set; } /// /// /// - public global::Together.QueueMetricsResponse? Type495 { get; set; } + public global::Together.VolumeContentType? Type495 { get; set; } /// /// /// - public global::Together.QueueCancelRequest? Type496 { get; set; } + public global::Together.QueueError? Type496 { get; set; } /// /// /// - public global::Together.QueueCancelResponse? Type497 { get; set; } + public global::Together.QueueMetricsResponse? Type497 { get; set; } /// /// /// - public global::Together.QueueCancelResponseStatus? Type498 { get; set; } + public global::Together.QueueCancelRequest? Type498 { get; set; } /// /// /// - public global::Together.QueueJobRequest? Type499 { get; set; } + public global::Together.QueueCancelResponse? Type499 { get; set; } /// /// /// - public global::Together.QueueJobResponse? Type500 { get; set; } + public global::Together.QueueCancelResponseStatus? Type500 { get; set; } /// /// /// - public global::Together.QueueJobStatusResponse? Type501 { get; set; } + public global::Together.QueueJobRequest? Type501 { get; set; } /// /// /// - public global::Together.QueueJobStatusResponseStatus? Type502 { get; set; } + public global::Together.QueueJobResponse? Type502 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequest? Type503 { get; set; } + public global::Together.QueueJobStatusResponse? Type503 { get; set; } /// /// /// - public global::Together.AnyOf? Type504 { get; set; } + public global::Together.QueueJobStatusResponseStatus? Type504 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestModel? Type505 { get; set; } + public global::Together.CreateImagesGenerationsRequest? Type505 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestResponseFormat? Type506 { get; set; } + public global::Together.AnyOf? Type506 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestOutputFormat? Type507 { get; set; } + public global::Together.CreateImagesGenerationsRequestModel? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::Together.CreateImagesGenerationsRequestResponseFormat? Type508 { get; set; } /// /// /// - public global::Together.CreateImagesGenerationsRequestImageLora? Type509 { get; set; } + public global::Together.CreateImagesGenerationsRequestOutputFormat? Type509 { get; set; } /// /// /// - public global::Together.CreateFilesUploadRequest? Type510 { get; set; } + public global::System.Collections.Generic.IList? Type510 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequest? Type511 { get; set; } + public global::Together.CreateImagesGenerationsRequestImageLora? Type511 { get; set; } /// /// /// - public global::Together.OneOf? Type512 { get; set; } + public global::Together.CreateFilesUploadRequest? Type512 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequestBatchSize? Type513 { get; set; } + public global::Together.CreateFineTunesRequest? Type513 { get; set; } /// /// /// - public global::Together.OneOf? Type514 { get; set; } + public global::Together.OneOf? Type514 { get; set; } /// /// /// - public global::Together.CreateFineTunesRequestTrainOnInputs? Type515 { get; set; } + public global::Together.CreateFineTunesRequestBatchSize? Type515 { get; set; } /// /// /// - public global::Together.AnyOf? Type516 { get; set; } + public global::Together.OneOf? Type516 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceRequest? Type517 { get; set; } + public global::Together.CreateFineTunesRequestTrainOnInputs? Type517 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequest? Type518 { get; set; } + public global::Together.AnyOf? Type518 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequestState? Type519 { get; set; } + public global::Together.CreateFineTunesEstimatePriceRequest? Type519 { get; set; } /// /// /// - public global::Together.GetFinetuneDownloadCheckpoint? Type520 { get; set; } + public global::Together.UpdateEndpointRequest? Type520 { get; set; } /// /// /// - public global::Together.RealtimeTtsModel? Type521 { get; set; } + public global::Together.UpdateEndpointRequestState? Type521 { get; set; } /// /// /// - public global::Together.ListEndpointsType? Type522 { get; set; } + public global::Together.GetFinetuneDownloadCheckpoint? Type522 { get; set; } /// /// /// - public global::Together.ListEndpointsUsageType? Type523 { get; set; } + public global::Together.RealtimeTtsModel? Type523 { get; set; } /// /// /// - public global::Together.RealtimeTranscriptionInputAudioFormat? Type524 { get; set; } + public global::Together.ListEndpointsType? Type524 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type525 { get; set; } + public global::Together.ListEndpointsUsageType? Type525 { get; set; } /// /// /// - public global::Together.CreateFineTunesEstimatePriceResponse? Type526 { get; set; } + public global::Together.RealtimeTranscriptionInputAudioFormat? Type526 { get; set; } /// /// /// - public global::Together.GetFineTunesModelsSupportedResponse? Type527 { get; set; } + public global::System.Collections.Generic.Dictionary? Type527 { get; set; } /// /// /// - public global::Together.GetFineTunesModelsLimitsResponse? Type528 { get; set; } + public global::Together.CreateFineTunesEstimatePriceResponse? Type528 { get; set; } /// /// /// - public global::Together.GPUClusterServiceDeleteResponse? Type529 { get; set; } + public global::Together.GetFineTunesModelsSupportedResponse? Type529 { get; set; } /// /// /// - public global::Together.ListEndpointsResponse? Type530 { get; set; } + public global::Together.GetFineTunesModelsLimitsResponse? Type530 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type531 { get; set; } + public global::Together.GPUClusterServiceDeleteResponse? Type531 { get; set; } /// /// /// - public global::Together.ListHardwareResponse? Type532 { get; set; } + public global::Together.ListEndpointsResponse? Type532 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type533 { get; set; } + public global::System.Collections.Generic.IList? Type533 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type534 { get; set; } + public global::Together.ListHardwareResponse? Type534 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type535 { get; set; } + public global::System.Collections.Generic.IList? Type535 { get; set; } /// /// /// - public global::Together.GetModelListResponse? Type536 { get; set; } + public global::System.Collections.Generic.IList? Type536 { get; set; } /// /// /// - public global::Together.GetEvaluationJobStatusAndResultsResponse? Type537 { get; set; } + public global::System.Collections.Generic.IList? Type537 { get; set; } /// /// /// - public global::Together.GetEvaluationJobStatusAndResultsResponseStatus? Type538 { get; set; } + public global::Together.GetModelListResponse? Type538 { get; set; } /// /// /// - public global::Together.OneOf? Type539 { get; set; } + public global::Together.GetEvaluationJobStatusAndResultsResponse? Type539 { get; set; } + /// + /// + /// + public global::Together.GetEvaluationJobStatusAndResultsResponseStatus? Type540 { get; set; } + /// + /// + /// + public global::Together.OneOf? Type541 { get; set; } /// /// @@ -2425,7 +2433,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List>? ListType59 { get; set; } /// /// /// diff --git a/src/libs/Together/Generated/Together.Models.VideoMedia.g.cs b/src/libs/Together/Generated/Together.Models.VideoMedia.g.cs index 44b759f..d007e26 100644 --- a/src/libs/Together/Generated/Together.Models.VideoMedia.g.cs +++ b/src/libs/Together/Generated/Together.Models.VideoMedia.g.cs @@ -33,16 +33,17 @@ public sealed partial class VideoMedia public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } /// - /// Source video to edit. + /// Source video to edit. Accepts a URL string or an object with a "video" key. /// [global::System.Text.Json.Serialization.JsonPropertyName("source_video")] - public global::Together.VideoRef? SourceVideo { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.OneOfJsonConverter))] + public global::Together.OneOf? SourceVideo { get; set; } /// - /// Array of audio inputs. + /// Array of audio inputs. Each element accepts a URL string or an object with an "audio" key. /// [global::System.Text.Json.Serialization.JsonPropertyName("audio_inputs")] - public global::System.Collections.Generic.IList? AudioInputs { get; set; } + public global::System.Collections.Generic.IList>? AudioInputs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -66,10 +67,10 @@ public sealed partial class VideoMedia /// Array of reference videos. /// /// - /// Source video to edit. + /// Source video to edit. Accepts a URL string or an object with a "video" key. /// /// - /// Array of audio inputs. + /// Array of audio inputs. Each element accepts a URL string or an object with an "audio" key. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -79,8 +80,8 @@ public VideoMedia( global::System.Collections.Generic.IList? frameVideos, global::System.Collections.Generic.IList? referenceImages, global::System.Collections.Generic.IList? referenceVideos, - global::Together.VideoRef? sourceVideo, - global::System.Collections.Generic.IList? audioInputs) + global::Together.OneOf? sourceVideo, + global::System.Collections.Generic.IList>? audioInputs) { this.FrameImages = frameImages; this.FrameVideos = frameVideos; diff --git a/src/libs/Together/openapi.yaml b/src/libs/Together/openapi.yaml index a2b955b..7c3f666 100644 --- a/src/libs/Together/openapi.yaml +++ b/src/libs/Together/openapi.yaml @@ -12719,13 +12719,17 @@ components: items: $ref: '#/components/schemas/VideoRef' source_video: - $ref: '#/components/schemas/VideoRef' - description: Source video to edit. + description: Source video to edit. Accepts a URL string or an object with a "video" key. + oneOf: + - type: string + - $ref: '#/components/schemas/VideoRef' audio_inputs: - description: Array of audio inputs. + description: Array of audio inputs. Each element accepts a URL string or an object with an "audio" key. type: array items: - $ref: '#/components/schemas/AudioRef' + oneOf: + - type: string + - $ref: '#/components/schemas/AudioRef' VideoRef: type: object