From 270282af817eeeb1ed59e8f69b35311bda9e6125 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 23 Oct 2025 01:10:12 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Replicate.Models.SchemasPredictionResponse.g.cs | 6 ++++-- .../Replicate.Models.SchemasPredictionResponseStatus.g.cs | 8 +++++++- .../Replicate.Models.SchemasTrainingResponse.g.cs | 4 ++-- .../Replicate.Models.SchemasTrainingResponseStatus.g.cs | 8 +++++++- src/libs/Replicate/openapi.yaml | 5 ++++- 5 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs index a424e59..9f1c96d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponse.g.cs @@ -103,7 +103,7 @@ public sealed partial class SchemasPredictionResponse public global::System.DateTime? StartedAt { get; set; } /// - /// + /// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts). /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Replicate.JsonConverters.SchemasPredictionResponseStatusJsonConverter))] @@ -174,7 +174,9 @@ public sealed partial class SchemasPredictionResponse /// /// The time that the model began the prediction /// - /// + /// + /// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts). + /// /// /// URLs for working with the prediction /// diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs index 835f479..8ba6ce3 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionResponseStatus.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// + /// The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts). /// public enum SchemasPredictionResponseStatus { @@ -28,6 +28,10 @@ public enum SchemasPredictionResponseStatus /// /// Canceled, + /// + /// + /// + Aborted, } /// @@ -47,6 +51,7 @@ public static string ToValueString(this SchemasPredictionResponseStatus value) SchemasPredictionResponseStatus.Succeeded => "succeeded", SchemasPredictionResponseStatus.Failed => "failed", SchemasPredictionResponseStatus.Canceled => "canceled", + SchemasPredictionResponseStatus.Aborted => "aborted", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -62,6 +67,7 @@ public static string ToValueString(this SchemasPredictionResponseStatus value) "succeeded" => SchemasPredictionResponseStatus.Succeeded, "failed" => SchemasPredictionResponseStatus.Failed, "canceled" => SchemasPredictionResponseStatus.Canceled, + "aborted" => SchemasPredictionResponseStatus.Aborted, _ => null, }; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs index 6fff0ca..bb9aef3 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponse.g.cs @@ -76,7 +76,7 @@ public sealed partial class SchemasTrainingResponse public global::System.DateTime? StartedAt { get; set; } /// - /// The current status of the training + /// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts). /// [global::System.Text.Json.Serialization.JsonPropertyName("status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Replicate.JsonConverters.SchemasTrainingResponseStatusJsonConverter))] @@ -137,7 +137,7 @@ public sealed partial class SchemasTrainingResponse /// The time when the training started /// /// - /// The current status of the training + /// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts). /// /// /// URLs for interacting with the training diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs index 4eabb04..628e7c6 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingResponseStatus.g.cs @@ -4,7 +4,7 @@ namespace Replicate { /// - /// The current status of the training + /// The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts). /// public enum SchemasTrainingResponseStatus { @@ -28,6 +28,10 @@ public enum SchemasTrainingResponseStatus /// /// Canceled, + /// + /// + /// + Aborted, } /// @@ -47,6 +51,7 @@ public static string ToValueString(this SchemasTrainingResponseStatus value) SchemasTrainingResponseStatus.Succeeded => "succeeded", SchemasTrainingResponseStatus.Failed => "failed", SchemasTrainingResponseStatus.Canceled => "canceled", + SchemasTrainingResponseStatus.Aborted => "aborted", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -62,6 +67,7 @@ public static string ToValueString(this SchemasTrainingResponseStatus value) "succeeded" => SchemasTrainingResponseStatus.Succeeded, "failed" => SchemasTrainingResponseStatus.Failed, "canceled" => SchemasTrainingResponseStatus.Canceled, + "aborted" => SchemasTrainingResponseStatus.Aborted, _ => null, }; } diff --git a/src/libs/Replicate/openapi.yaml b/src/libs/Replicate/openapi.yaml index b77371f..82d8134 100644 --- a/src/libs/Replicate/openapi.yaml +++ b/src/libs/Replicate/openapi.yaml @@ -1548,7 +1548,9 @@ components: - succeeded - failed - canceled + - aborted type: string + description: "The prediction status. `canceled` means the prediction was canceled (either by the user or because it reached its deadline while running). `aborted` means the prediction was terminated before it started running (for example, when a deadline is reached before the prediction starts).\n" urls: required: - web @@ -1743,8 +1745,9 @@ components: - succeeded - failed - canceled + - aborted type: string - description: The current status of the training + description: "The current status of the training. `canceled` means the training was canceled (either by the user or because it reached its deadline while running). `aborted` means the training was terminated before it started running (for example, when a deadline is reached before the training starts).\n" urls: type: object properties: