From b7d948af3d5deaaa717dde5a2fdb7518d4c862c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Dec 2024 12:29:08 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ictionRequestWebhookEventsFilterItem.g.cs} | 12 ++-- ...questWebhookEventsFilterItemNullable.g.cs} | 12 ++-- ...ainingRequestWebhookEventsFilterItem.g.cs} | 12 ++-- ...questWebhookEventsFilterItemNullable.g.cs} | 12 ++-- ...ictionRequestWebhookEventsFilterItem.g.cs} | 12 ++-- ...questWebhookEventsFilterItemNullable.g.cs} | 12 ++-- .../Generated/JsonSerializerContext.g.cs | 12 ++-- .../Generated/JsonSerializerContextTypes.g.cs | 18 +++--- ...icateApi.DeploymentsPredictionsCreate.g.cs | 4 +- ...IReplicateApi.ModelsPredictionsCreate.g.cs | 4 +- ...icate.IReplicateApi.PredictionsCreate.g.cs | 4 +- ...plicate.IReplicateApi.TrainingsCreate.g.cs | 4 +- ...dictionRequestWebhookEventsFilterItem.g.cs | 63 ------------------- ...Models.SchemasPredictionRequest.Json.g.cs} | 22 +++---- ...cate.Models.SchemasPredictionRequest.g.cs} | 14 ++--- ...s.SchemasPredictionRequestInput.Json.g.cs} | 22 +++---- ...Models.SchemasPredictionRequestInput.g.cs} | 6 +- ...ictionRequestWebhookEventsFilterItem.g.cs} | 24 +++---- ...e.Models.SchemasTrainingRequest.Json.g.cs} | 22 +++---- ...licate.Models.SchemasTrainingRequest.g.cs} | 14 ++--- ...els.SchemasTrainingRequestInput.Json.g.cs} | 22 +++---- ...e.Models.SchemasTrainingRequestInput.g.cs} | 6 +- ...rainingRequestWebhookEventsFilterItem.g.cs | 63 +++++++++++++++++++ ...SchemasVersionPredictionRequest.Json.g.cs} | 22 +++---- ...dels.SchemasVersionPredictionRequest.g.cs} | 14 ++--- ...asVersionPredictionRequestInput.Json.g.cs} | 22 +++---- ...SchemasVersionPredictionRequestInput.g.cs} | 6 +- ...dictionRequestWebhookEventsFilterItem.g.cs | 63 +++++++++++++++++++ ...rainingRequestWebhookEventsFilterItem.g.cs | 63 ------------------- ...icateApi.DeploymentsPredictionsCreate.g.cs | 10 +-- ....ReplicateApi.ModelsPredictionsCreate.g.cs | 10 +-- ...licate.ReplicateApi.PredictionsCreate.g.cs | 10 +-- ...eplicate.ReplicateApi.TrainingsCreate.g.cs | 10 +-- src/libs/Replicate/openapi.yaml | 22 +++---- 34 files changed, 324 insertions(+), 324 deletions(-) rename src/libs/Replicate/Generated/{JsonConverters.VersionPredictionRequestWebhookEventsFilterItem.g.cs => JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs} (78%) rename src/libs/Replicate/Generated/{JsonConverters.VersionPredictionRequestWebhookEventsFilterItemNullable.g.cs => JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs} (76%) rename src/libs/Replicate/Generated/{JsonConverters.PredictionRequestWebhookEventsFilterItem.g.cs => JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs} (63%) rename src/libs/Replicate/Generated/{JsonConverters.PredictionRequestWebhookEventsFilterItemNullable.g.cs => JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs} (65%) rename src/libs/Replicate/Generated/{JsonConverters.TrainingRequestWebhookEventsFilterItem.g.cs => JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs} (61%) rename src/libs/Replicate/Generated/{JsonConverters.TrainingRequestWebhookEventsFilterItemNullable.g.cs => JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs} (63%) delete mode 100644 src/libs/Replicate/Generated/Replicate.Models.PredictionRequestWebhookEventsFilterItem.g.cs rename src/libs/Replicate/Generated/{Replicate.Models.VersionPredictionRequest.Json.g.cs => Replicate.Models.SchemasPredictionRequest.Json.g.cs} (86%) rename src/libs/Replicate/Generated/{Replicate.Models.PredictionRequest.g.cs => Replicate.Models.SchemasPredictionRequest.g.cs} (94%) rename src/libs/Replicate/Generated/{Replicate.Models.VersionPredictionRequestInput.Json.g.cs => Replicate.Models.SchemasPredictionRequestInput.Json.g.cs} (86%) rename src/libs/Replicate/Generated/{Replicate.Models.VersionPredictionRequestInput.g.cs => Replicate.Models.SchemasPredictionRequestInput.g.cs} (89%) rename src/libs/Replicate/Generated/{Replicate.Models.VersionPredictionRequestWebhookEventsFilterItem.g.cs => Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs} (61%) rename src/libs/Replicate/Generated/{Replicate.Models.PredictionRequestInput.Json.g.cs => Replicate.Models.SchemasTrainingRequest.Json.g.cs} (87%) rename src/libs/Replicate/Generated/{Replicate.Models.TrainingRequest.g.cs => Replicate.Models.SchemasTrainingRequest.g.cs} (93%) rename src/libs/Replicate/Generated/{Replicate.Models.PredictionRequest.Json.g.cs => Replicate.Models.SchemasTrainingRequestInput.Json.g.cs} (85%) rename src/libs/Replicate/Generated/{Replicate.Models.TrainingRequestInput.g.cs => Replicate.Models.SchemasTrainingRequestInput.g.cs} (77%) create mode 100644 src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs rename src/libs/Replicate/Generated/{Replicate.Models.TrainingRequestInput.Json.g.cs => Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs} (84%) rename src/libs/Replicate/Generated/{Replicate.Models.VersionPredictionRequest.g.cs => Replicate.Models.SchemasVersionPredictionRequest.g.cs} (94%) rename src/libs/Replicate/Generated/{Replicate.Models.TrainingRequest.Json.g.cs => Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs} (84%) rename src/libs/Replicate/Generated/{Replicate.Models.PredictionRequestInput.g.cs => Replicate.Models.SchemasVersionPredictionRequestInput.g.cs} (86%) create mode 100644 src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs delete mode 100644 src/libs/Replicate/Generated/Replicate.Models.TrainingRequestWebhookEventsFilterItem.g.cs diff --git a/src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs similarity index 78% rename from src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItem.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs index 821cb15..19c7fc2 100644 --- a/src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItem.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class VersionPredictionRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasPredictionRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.VersionPredictionRequestWebhookEventsFilterItem Read( + public override global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.VersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; + return global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,7 +26,7 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.VersionPredictionRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,12 +38,12 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.VersionPredictionRequestWebhookEventsFilterItem value, + global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Replicate.VersionPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value)); + writer.WriteStringValue(global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value)); } } } diff --git a/src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs similarity index 76% rename from src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItemNullable.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs index c085181..fbe48c9 100644 --- a/src/libs/Replicate/Generated/JsonConverters.VersionPredictionRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullable.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class VersionPredictionRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasPredictionRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.VersionPredictionRequestWebhookEventsFilterItem? Read( + public override global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemNullableJsonC var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.VersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); + return global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } break; @@ -26,7 +26,7 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemNullableJsonC case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.VersionPredictionRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,7 +38,7 @@ public sealed class VersionPredictionRequestWebhookEventsFilterItemNullableJsonC /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.VersionPredictionRequestWebhookEventsFilterItem? value, + global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -49,7 +49,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Replicate.VersionPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Replicate.SchemasPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs similarity index 63% rename from src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItem.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs index 8ca8dcc..5a776fc 100644 --- a/src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItem.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class PredictionRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasTrainingRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.PredictionRequestWebhookEventsFilterItem Read( + public override global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PredictionRequestWebhookEventsFilterItemJsonConverter : glob var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.PredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; + return global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,7 +26,7 @@ public sealed class PredictionRequestWebhookEventsFilterItemJsonConverter : glob case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.PredictionRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,12 +38,12 @@ public sealed class PredictionRequestWebhookEventsFilterItemJsonConverter : glob /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.PredictionRequestWebhookEventsFilterItem value, + global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Replicate.PredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value)); + writer.WriteStringValue(global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToValueString(value)); } } } diff --git a/src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs similarity index 65% rename from src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItemNullable.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs index e4bff5b..e165b18 100644 --- a/src/libs/Replicate/Generated/JsonConverters.PredictionRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullable.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class PredictionRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasTrainingRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.PredictionRequestWebhookEventsFilterItem? Read( + public override global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class PredictionRequestWebhookEventsFilterItemNullableJsonConverte var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.PredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); + return global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } break; @@ -26,7 +26,7 @@ public sealed class PredictionRequestWebhookEventsFilterItemNullableJsonConverte case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.PredictionRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,7 +38,7 @@ public sealed class PredictionRequestWebhookEventsFilterItemNullableJsonConverte /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.PredictionRequestWebhookEventsFilterItem? value, + global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -49,7 +49,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Replicate.PredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Replicate.SchemasTrainingRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs similarity index 61% rename from src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItem.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs index 420ac02..cc04d1c 100644 --- a/src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class TrainingRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasVersionPredictionRequestWebhookEventsFilterItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.TrainingRequestWebhookEventsFilterItem Read( + public override global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TrainingRequestWebhookEventsFilterItemJsonConverter : global var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.TrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; + return global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,7 +26,7 @@ public sealed class TrainingRequestWebhookEventsFilterItemJsonConverter : global case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.TrainingRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,12 +38,12 @@ public sealed class TrainingRequestWebhookEventsFilterItemJsonConverter : global /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.TrainingRequestWebhookEventsFilterItem value, + global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Replicate.TrainingRequestWebhookEventsFilterItemExtensions.ToValueString(value)); + writer.WriteStringValue(global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value)); } } } diff --git a/src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItemNullable.g.cs b/src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs similarity index 63% rename from src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItemNullable.g.cs rename to src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs index e616887..76fddaf 100644 --- a/src/libs/Replicate/Generated/JsonConverters.TrainingRequestWebhookEventsFilterItemNullable.g.cs +++ b/src/libs/Replicate/Generated/JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullable.g.cs @@ -3,10 +3,10 @@ namespace Replicate.JsonConverters { /// - public sealed class TrainingRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class SchemasVersionPredictionRequestWebhookEventsFilterItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Replicate.TrainingRequestWebhookEventsFilterItem? Read( + public override global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class TrainingRequestWebhookEventsFilterItemNullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Replicate.TrainingRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); + return global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToEnum(stringValue); } break; @@ -26,7 +26,7 @@ public sealed class TrainingRequestWebhookEventsFilterItemNullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Replicate.TrainingRequestWebhookEventsFilterItem)numValue; + return (global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,7 +38,7 @@ public sealed class TrainingRequestWebhookEventsFilterItemNullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Replicate.TrainingRequestWebhookEventsFilterItem? value, + global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -49,7 +49,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Replicate.TrainingRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Replicate/Generated/JsonSerializerContext.g.cs b/src/libs/Replicate/Generated/JsonSerializerContext.g.cs index 6be8c04..d8caa8f 100644 --- a/src/libs/Replicate/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Replicate/Generated/JsonSerializerContext.g.cs @@ -13,12 +13,12 @@ namespace Replicate DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Replicate.JsonConverters.PredictionRequestWebhookEventsFilterItemJsonConverter), - typeof(global::Replicate.JsonConverters.PredictionRequestWebhookEventsFilterItemNullableJsonConverter), - typeof(global::Replicate.JsonConverters.TrainingRequestWebhookEventsFilterItemJsonConverter), - typeof(global::Replicate.JsonConverters.TrainingRequestWebhookEventsFilterItemNullableJsonConverter), - typeof(global::Replicate.JsonConverters.VersionPredictionRequestWebhookEventsFilterItemJsonConverter), - typeof(global::Replicate.JsonConverters.VersionPredictionRequestWebhookEventsFilterItemNullableJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasPredictionRequestWebhookEventsFilterItemNullableJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasTrainingRequestWebhookEventsFilterItemNullableJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemJsonConverter), + typeof(global::Replicate.JsonConverters.SchemasVersionPredictionRequestWebhookEventsFilterItemNullableJsonConverter), typeof(global::Replicate.JsonConverters.ModelsCreateRequestVisibilityJsonConverter), typeof(global::Replicate.JsonConverters.ModelsCreateRequestVisibilityNullableJsonConverter), typeof(global::Replicate.JsonConverters.AccountGetResponseTypeJsonConverter), diff --git a/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs index 744de66..de29920 100644 --- a/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Replicate/Generated/JsonSerializerContextTypes.g.cs @@ -18,7 +18,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Replicate.PredictionRequest? Type0 { get; set; } + public global::Replicate.SchemasPredictionRequest? Type0 { get; set; } /// /// /// @@ -34,35 +34,35 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type4 { get; set; } + public global::System.Collections.Generic.IList? Type4 { get; set; } /// /// /// - public global::Replicate.PredictionRequestWebhookEventsFilterItem? Type5 { get; set; } + public global::Replicate.SchemasPredictionRequestWebhookEventsFilterItem? Type5 { get; set; } /// /// /// - public global::Replicate.TrainingRequest? Type6 { get; set; } + public global::Replicate.SchemasTrainingRequest? Type6 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type7 { get; set; } + public global::System.Collections.Generic.IList? Type7 { get; set; } /// /// /// - public global::Replicate.TrainingRequestWebhookEventsFilterItem? Type8 { get; set; } + public global::Replicate.SchemasTrainingRequestWebhookEventsFilterItem? Type8 { get; set; } /// /// /// - public global::Replicate.VersionPredictionRequest? Type9 { get; set; } + public global::Replicate.SchemasVersionPredictionRequest? Type9 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type10 { get; set; } + public global::System.Collections.Generic.IList? Type10 { get; set; } /// /// /// - public global::Replicate.VersionPredictionRequestWebhookEventsFilterItem? Type11 { get; set; } + public global::Replicate.SchemasVersionPredictionRequestWebhookEventsFilterItem? Type11 { get; set; } /// /// /// diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs index 013ec48..551b6bc 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.DeploymentsPredictionsCreate.g.cs @@ -29,7 +29,7 @@ public partial interface IReplicateApi global::System.Threading.Tasks.Task DeploymentsPredictionsCreateAsync( string deploymentOwner, string deploymentName, - global::Replicate.PredictionRequest request, + global::Replicate.SchemasPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -99,7 +99,7 @@ public partial interface IReplicateApi string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs index 5168445..0faa1e8 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.ModelsPredictionsCreate.g.cs @@ -29,7 +29,7 @@ public partial interface IReplicateApi global::System.Threading.Tasks.Task ModelsPredictionsCreateAsync( string modelOwner, string modelName, - global::Replicate.PredictionRequest request, + global::Replicate.SchemasPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -99,7 +99,7 @@ public partial interface IReplicateApi string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs index 83197d4..b8422b0 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.PredictionsCreate.g.cs @@ -25,7 +25,7 @@ public partial interface IReplicateApi /// The token to cancel the operation with /// global::System.Threading.Tasks.Task PredictionsCreateAsync( - global::Replicate.VersionPredictionRequest request, + global::Replicate.SchemasVersionPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -96,7 +96,7 @@ public partial interface IReplicateApi string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsCreate.g.cs index 0772e97..b5862e6 100644 --- a/src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.IReplicateApi.TrainingsCreate.g.cs @@ -58,7 +58,7 @@ public partial interface IReplicateApi string modelOwner, string modelName, string versionId, - global::Replicate.TrainingRequest request, + global::Replicate.SchemasTrainingRequest request, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -145,7 +145,7 @@ public partial interface IReplicateApi string destination, object input, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestWebhookEventsFilterItem.g.cs deleted file mode 100644 index aa63d9f..0000000 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestWebhookEventsFilterItem.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Replicate -{ - /// - /// - /// - public enum PredictionRequestWebhookEventsFilterItem - { - /// - /// - /// - Start, - /// - /// - /// - Output, - /// - /// - /// - Logs, - /// - /// - /// - Completed, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class PredictionRequestWebhookEventsFilterItemExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this PredictionRequestWebhookEventsFilterItem value) - { - return value switch - { - PredictionRequestWebhookEventsFilterItem.Start => "start", - PredictionRequestWebhookEventsFilterItem.Output => "output", - PredictionRequestWebhookEventsFilterItem.Logs => "logs", - PredictionRequestWebhookEventsFilterItem.Completed => "completed", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static PredictionRequestWebhookEventsFilterItem? ToEnum(string value) - { - return value switch - { - "start" => PredictionRequestWebhookEventsFilterItem.Start, - "output" => PredictionRequestWebhookEventsFilterItem.Output, - "logs" => PredictionRequestWebhookEventsFilterItem.Logs, - "completed" => PredictionRequestWebhookEventsFilterItem.Completed, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs similarity index 86% rename from src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs index 62317ad..ee78326 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class VersionPredictionRequest + public sealed partial class SchemasPredictionRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.VersionPredictionRequest? FromJson( + public static global::Replicate.SchemasPredictionRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.VersionPredictionRequest), - jsonSerializerContext) as global::Replicate.VersionPredictionRequest; + typeof(global::Replicate.SchemasPredictionRequest), + jsonSerializerContext) as global::Replicate.SchemasPredictionRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.VersionPredictionRequest? FromJson( + public static global::Replicate.SchemasPredictionRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.VersionPredictionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.VersionPredictionRequest; + typeof(global::Replicate.SchemasPredictionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs similarity index 94% rename from src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs index d667280..666943d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequest.g.cs @@ -6,7 +6,7 @@ namespace Replicate /// /// /// - public sealed partial class PredictionRequest + public sealed partial class SchemasPredictionRequest { /// /// The model's input as a JSON object. The input schema depends on what model you are running. To see the available inputs, click the "API" tab on the model you are running or [get the model version](#models.versions.get) and look at its `openapi_schema` property. For example, [stability-ai/sdxl](https://replicate.com/stability-ai/sdxl) takes `prompt` as an input.
@@ -57,7 +57,7 @@ public sealed partial class PredictionRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_events_filter")] - public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } + public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -66,7 +66,7 @@ public sealed partial class PredictionRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The model's input as a JSON object. The input schema depends on what model you are running. To see the available inputs, click the "API" tab on the model you are running or [get the model version](#models.versions.get) and look at its `openapi_schema` property. For example, [stability-ai/sdxl](https://replicate.com/stability-ai/sdxl) takes `prompt` as an input.
@@ -107,11 +107,11 @@ public sealed partial class PredictionRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public PredictionRequest( + public SchemasPredictionRequest( object input, bool? stream, string? webhook, - global::System.Collections.Generic.IList? webhookEventsFilter) + global::System.Collections.Generic.IList? webhookEventsFilter) { this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Stream = stream; @@ -120,9 +120,9 @@ public PredictionRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public PredictionRequest() + public SchemasPredictionRequest() { } } diff --git a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs similarity index 86% rename from src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs index 9f90f71..0e378fd 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class VersionPredictionRequestInput + public sealed partial class SchemasPredictionRequestInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.VersionPredictionRequestInput? FromJson( + public static global::Replicate.SchemasPredictionRequestInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.VersionPredictionRequestInput), - jsonSerializerContext) as global::Replicate.VersionPredictionRequestInput; + typeof(global::Replicate.SchemasPredictionRequestInput), + jsonSerializerContext) as global::Replicate.SchemasPredictionRequestInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.VersionPredictionRequestInput? FromJson( + public static global::Replicate.SchemasPredictionRequestInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.VersionPredictionRequestInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.VersionPredictionRequestInput; + typeof(global::Replicate.SchemasPredictionRequestInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasPredictionRequestInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs similarity index 89% rename from src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs index f0e8908..feab155 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestInput.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestInput.g.cs @@ -15,7 +15,7 @@ namespace Replicate /// - you don't want to upload and host the file somewhere
/// - you don't need to use the file again (Replicate will not store it) ///
- public sealed partial class VersionPredictionRequestInput + public sealed partial class SchemasPredictionRequestInput { /// @@ -25,10 +25,10 @@ public sealed partial class VersionPredictionRequestInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public VersionPredictionRequestInput( + public SchemasPredictionRequestInput( ) { } diff --git a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs similarity index 61% rename from src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestWebhookEventsFilterItem.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs index e383f10..f467351 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequestWebhookEventsFilterItem.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasPredictionRequestWebhookEventsFilterItem.g.cs @@ -6,7 +6,7 @@ namespace Replicate /// /// /// - public enum VersionPredictionRequestWebhookEventsFilterItem + public enum SchemasPredictionRequestWebhookEventsFilterItem { /// /// @@ -29,33 +29,33 @@ public enum VersionPredictionRequestWebhookEventsFilterItem /// /// Enum extensions to do fast conversions without the reflection. /// - public static class VersionPredictionRequestWebhookEventsFilterItemExtensions + public static class SchemasPredictionRequestWebhookEventsFilterItemExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this VersionPredictionRequestWebhookEventsFilterItem value) + public static string ToValueString(this SchemasPredictionRequestWebhookEventsFilterItem value) { return value switch { - VersionPredictionRequestWebhookEventsFilterItem.Start => "start", - VersionPredictionRequestWebhookEventsFilterItem.Output => "output", - VersionPredictionRequestWebhookEventsFilterItem.Logs => "logs", - VersionPredictionRequestWebhookEventsFilterItem.Completed => "completed", + SchemasPredictionRequestWebhookEventsFilterItem.Start => "start", + SchemasPredictionRequestWebhookEventsFilterItem.Output => "output", + SchemasPredictionRequestWebhookEventsFilterItem.Logs => "logs", + SchemasPredictionRequestWebhookEventsFilterItem.Completed => "completed", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static VersionPredictionRequestWebhookEventsFilterItem? ToEnum(string value) + public static SchemasPredictionRequestWebhookEventsFilterItem? ToEnum(string value) { return value switch { - "start" => VersionPredictionRequestWebhookEventsFilterItem.Start, - "output" => VersionPredictionRequestWebhookEventsFilterItem.Output, - "logs" => VersionPredictionRequestWebhookEventsFilterItem.Logs, - "completed" => VersionPredictionRequestWebhookEventsFilterItem.Completed, + "start" => SchemasPredictionRequestWebhookEventsFilterItem.Start, + "output" => SchemasPredictionRequestWebhookEventsFilterItem.Output, + "logs" => SchemasPredictionRequestWebhookEventsFilterItem.Logs, + "completed" => SchemasPredictionRequestWebhookEventsFilterItem.Completed, _ => null, }; } diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs similarity index 87% rename from src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs index f89e853..cd683a9 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class PredictionRequestInput + public sealed partial class SchemasTrainingRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.PredictionRequestInput? FromJson( + public static global::Replicate.SchemasTrainingRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.PredictionRequestInput), - jsonSerializerContext) as global::Replicate.PredictionRequestInput; + typeof(global::Replicate.SchemasTrainingRequest), + jsonSerializerContext) as global::Replicate.SchemasTrainingRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.PredictionRequestInput? FromJson( + public static global::Replicate.SchemasTrainingRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.PredictionRequestInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.PredictionRequestInput; + typeof(global::Replicate.SchemasTrainingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs similarity index 93% rename from src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs index 602cc27..53267cd 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequest.g.cs @@ -6,7 +6,7 @@ namespace Replicate /// /// /// - public sealed partial class TrainingRequest + public sealed partial class SchemasTrainingRequest { /// /// A string representing the desired model to push to in the format `{destination_model_owner}/{destination_model_name}`. This should be an existing model owned by the user or organization making the API request. If the destination is invalid, the server will return an appropriate 4XX response. @@ -48,7 +48,7 @@ public sealed partial class TrainingRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. /// [global::System.Text.Json.Serialization.JsonPropertyName("webhook_events_filter")] - public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } + public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,7 +57,7 @@ public sealed partial class TrainingRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// A string representing the desired model to push to in the format `{destination_model_owner}/{destination_model_name}`. This should be an existing model owned by the user or organization making the API request. If the destination is invalid, the server will return an appropriate 4XX response. @@ -88,11 +88,11 @@ public sealed partial class TrainingRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public TrainingRequest( + public SchemasTrainingRequest( string destination, object input, string? webhook, - global::System.Collections.Generic.IList? webhookEventsFilter) + global::System.Collections.Generic.IList? webhookEventsFilter) { this.Destination = destination ?? throw new global::System.ArgumentNullException(nameof(destination)); this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); @@ -101,9 +101,9 @@ public TrainingRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public TrainingRequest() + public SchemasTrainingRequest() { } } diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs similarity index 85% rename from src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs index e657b44..2c46639 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class PredictionRequest + public sealed partial class SchemasTrainingRequestInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.PredictionRequest? FromJson( + public static global::Replicate.SchemasTrainingRequestInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.PredictionRequest), - jsonSerializerContext) as global::Replicate.PredictionRequest; + typeof(global::Replicate.SchemasTrainingRequestInput), + jsonSerializerContext) as global::Replicate.SchemasTrainingRequestInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.PredictionRequest? FromJson( + public static global::Replicate.SchemasTrainingRequestInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.PredictionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.PredictionRequest; + typeof(global::Replicate.SchemasTrainingRequestInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasTrainingRequestInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.g.cs similarity index 77% rename from src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.g.cs index 5511809..c746c32 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestInput.g.cs @@ -6,7 +6,7 @@ namespace Replicate /// /// An object containing inputs to the Cog model's `train()` function. /// - public sealed partial class TrainingRequestInput + public sealed partial class SchemasTrainingRequestInput { /// @@ -16,10 +16,10 @@ public sealed partial class TrainingRequestInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public TrainingRequestInput( + public SchemasTrainingRequestInput( ) { } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs new file mode 100644 index 0000000..5948309 --- /dev/null +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasTrainingRequestWebhookEventsFilterItem.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Replicate +{ + /// + /// + /// + public enum SchemasTrainingRequestWebhookEventsFilterItem + { + /// + /// + /// + Start, + /// + /// + /// + Output, + /// + /// + /// + Logs, + /// + /// + /// + Completed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SchemasTrainingRequestWebhookEventsFilterItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SchemasTrainingRequestWebhookEventsFilterItem value) + { + return value switch + { + SchemasTrainingRequestWebhookEventsFilterItem.Start => "start", + SchemasTrainingRequestWebhookEventsFilterItem.Output => "output", + SchemasTrainingRequestWebhookEventsFilterItem.Logs => "logs", + SchemasTrainingRequestWebhookEventsFilterItem.Completed => "completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SchemasTrainingRequestWebhookEventsFilterItem? ToEnum(string value) + { + return value switch + { + "start" => SchemasTrainingRequestWebhookEventsFilterItem.Start, + "output" => SchemasTrainingRequestWebhookEventsFilterItem.Output, + "logs" => SchemasTrainingRequestWebhookEventsFilterItem.Logs, + "completed" => SchemasTrainingRequestWebhookEventsFilterItem.Completed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs similarity index 84% rename from src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs index d1d6689..9ca6f23 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestInput.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class TrainingRequestInput + public sealed partial class SchemasVersionPredictionRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.TrainingRequestInput? FromJson( + public static global::Replicate.SchemasVersionPredictionRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.TrainingRequestInput), - jsonSerializerContext) as global::Replicate.TrainingRequestInput; + typeof(global::Replicate.SchemasVersionPredictionRequest), + jsonSerializerContext) as global::Replicate.SchemasVersionPredictionRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.TrainingRequestInput? FromJson( + public static global::Replicate.SchemasVersionPredictionRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.TrainingRequestInput), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.TrainingRequestInput; + typeof(global::Replicate.SchemasVersionPredictionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionPredictionRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs similarity index 94% rename from src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs index ded96b1..5bdaab1 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.VersionPredictionRequest.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequest.g.cs @@ -6,7 +6,7 @@ namespace Replicate /// /// /// - public sealed partial class VersionPredictionRequest + public sealed partial class SchemasVersionPredictionRequest { /// /// The model's input as a JSON object. The input schema depends on what model you are running. To see the available inputs, click the "API" tab on the model you are running or [get the model version](#models.versions.get) and look at its `openapi_schema` property. For example, [stability-ai/sdxl](https://replicate.com/stability-ai/sdxl) takes `prompt` as an input.
@@ -65,7 +65,7 @@ public sealed partial class VersionPredictionRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_events_filter")] - public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } + public global::System.Collections.Generic.IList? WebhookEventsFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -74,7 +74,7 @@ public sealed partial class VersionPredictionRequest public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The model's input as a JSON object. The input schema depends on what model you are running. To see the available inputs, click the "API" tab on the model you are running or [get the model version](#models.versions.get) and look at its `openapi_schema` property. For example, [stability-ai/sdxl](https://replicate.com/stability-ai/sdxl) takes `prompt` as an input.
@@ -119,12 +119,12 @@ public sealed partial class VersionPredictionRequest /// Requests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public VersionPredictionRequest( + public SchemasVersionPredictionRequest( object input, string version, bool? stream, string? webhook, - global::System.Collections.Generic.IList? webhookEventsFilter) + global::System.Collections.Generic.IList? webhookEventsFilter) { this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); this.Version = version ?? throw new global::System.ArgumentNullException(nameof(version)); @@ -134,9 +134,9 @@ public VersionPredictionRequest( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public VersionPredictionRequest() + public SchemasVersionPredictionRequest() { } } diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.Json.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs similarity index 84% rename from src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.Json.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs index 446ff96..da49f2d 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequest.Json.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.Json.g.cs @@ -2,7 +2,7 @@ namespace Replicate { - public sealed partial class TrainingRequest + public sealed partial class SchemasVersionPredictionRequestInput { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Replicate.TrainingRequest? FromJson( + public static global::Replicate.SchemasVersionPredictionRequestInput? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Replicate.TrainingRequest), - jsonSerializerContext) as global::Replicate.TrainingRequest; + typeof(global::Replicate.SchemasVersionPredictionRequestInput), + jsonSerializerContext) as global::Replicate.SchemasVersionPredictionRequestInput; } /// @@ -51,11 +51,11 @@ public string ToJson( [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::Replicate.TrainingRequest? FromJson( + public static global::Replicate.SchemasVersionPredictionRequestInput? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + 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::Replicate.TrainingRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.TrainingRequest; + typeof(global::Replicate.SchemasVersionPredictionRequestInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Replicate.SchemasVersionPredictionRequestInput; } /// @@ -80,11 +80,11 @@ public string ToJson( [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( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs similarity index 86% rename from src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.g.cs rename to src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs index 2729e31..d528be8 100644 --- a/src/libs/Replicate/Generated/Replicate.Models.PredictionRequestInput.g.cs +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestInput.g.cs @@ -15,7 +15,7 @@ namespace Replicate /// - you don't want to upload and host the file somewhere
/// - you don't need to use the file again (Replicate will not store it) ///
- public sealed partial class PredictionRequestInput + public sealed partial class SchemasVersionPredictionRequestInput { /// @@ -25,10 +25,10 @@ public sealed partial class PredictionRequestInput public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public PredictionRequestInput( + public SchemasVersionPredictionRequestInput( ) { } diff --git a/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs new file mode 100644 index 0000000..7135be7 --- /dev/null +++ b/src/libs/Replicate/Generated/Replicate.Models.SchemasVersionPredictionRequestWebhookEventsFilterItem.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Replicate +{ + /// + /// + /// + public enum SchemasVersionPredictionRequestWebhookEventsFilterItem + { + /// + /// + /// + Start, + /// + /// + /// + Output, + /// + /// + /// + Logs, + /// + /// + /// + Completed, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SchemasVersionPredictionRequestWebhookEventsFilterItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SchemasVersionPredictionRequestWebhookEventsFilterItem value) + { + return value switch + { + SchemasVersionPredictionRequestWebhookEventsFilterItem.Start => "start", + SchemasVersionPredictionRequestWebhookEventsFilterItem.Output => "output", + SchemasVersionPredictionRequestWebhookEventsFilterItem.Logs => "logs", + SchemasVersionPredictionRequestWebhookEventsFilterItem.Completed => "completed", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SchemasVersionPredictionRequestWebhookEventsFilterItem? ToEnum(string value) + { + return value switch + { + "start" => SchemasVersionPredictionRequestWebhookEventsFilterItem.Start, + "output" => SchemasVersionPredictionRequestWebhookEventsFilterItem.Output, + "logs" => SchemasVersionPredictionRequestWebhookEventsFilterItem.Logs, + "completed" => SchemasVersionPredictionRequestWebhookEventsFilterItem.Completed, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestWebhookEventsFilterItem.g.cs b/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestWebhookEventsFilterItem.g.cs deleted file mode 100644 index 5059185..0000000 --- a/src/libs/Replicate/Generated/Replicate.Models.TrainingRequestWebhookEventsFilterItem.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Replicate -{ - /// - /// - /// - public enum TrainingRequestWebhookEventsFilterItem - { - /// - /// - /// - Start, - /// - /// - /// - Output, - /// - /// - /// - Logs, - /// - /// - /// - Completed, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class TrainingRequestWebhookEventsFilterItemExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this TrainingRequestWebhookEventsFilterItem value) - { - return value switch - { - TrainingRequestWebhookEventsFilterItem.Start => "start", - TrainingRequestWebhookEventsFilterItem.Output => "output", - TrainingRequestWebhookEventsFilterItem.Logs => "logs", - TrainingRequestWebhookEventsFilterItem.Completed => "completed", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static TrainingRequestWebhookEventsFilterItem? ToEnum(string value) - { - return value switch - { - "start" => TrainingRequestWebhookEventsFilterItem.Start, - "output" => TrainingRequestWebhookEventsFilterItem.Output, - "logs" => TrainingRequestWebhookEventsFilterItem.Logs, - "completed" => TrainingRequestWebhookEventsFilterItem.Completed, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs index 19c7d51..fe8dd58 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.DeploymentsPredictionsCreate.g.cs @@ -10,14 +10,14 @@ partial void PrepareDeploymentsPredictionsCreateArguments( ref string deploymentOwner, ref string deploymentName, ref string? prefer, - global::Replicate.PredictionRequest request); + global::Replicate.SchemasPredictionRequest request); partial void PrepareDeploymentsPredictionsCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deploymentOwner, string deploymentName, string? prefer, - global::Replicate.PredictionRequest request); + global::Replicate.SchemasPredictionRequest request); partial void ProcessDeploymentsPredictionsCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -47,7 +47,7 @@ partial void ProcessDeploymentsPredictionsCreateResponse( public async global::System.Threading.Tasks.Task DeploymentsPredictionsCreateAsync( string deploymentOwner, string deploymentName, - global::Replicate.PredictionRequest request, + global::Replicate.SchemasPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -209,10 +209,10 @@ partial void ProcessDeploymentsPredictionsCreateResponse( string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Replicate.PredictionRequest + var __request = new global::Replicate.SchemasPredictionRequest { Input = input, Stream = stream, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs index 9ec1eb3..de1fe85 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.ModelsPredictionsCreate.g.cs @@ -10,14 +10,14 @@ partial void PrepareModelsPredictionsCreateArguments( ref string modelOwner, ref string modelName, ref string? prefer, - global::Replicate.PredictionRequest request); + global::Replicate.SchemasPredictionRequest request); partial void PrepareModelsPredictionsCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string modelOwner, string modelName, string? prefer, - global::Replicate.PredictionRequest request); + global::Replicate.SchemasPredictionRequest request); partial void ProcessModelsPredictionsCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -52,7 +52,7 @@ partial void ProcessModelsPredictionsCreateResponseContent( public async global::System.Threading.Tasks.Task ModelsPredictionsCreateAsync( string modelOwner, string modelName, - global::Replicate.PredictionRequest request, + global::Replicate.SchemasPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -260,10 +260,10 @@ partial void ProcessModelsPredictionsCreateResponseContent( string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Replicate.PredictionRequest + var __request = new global::Replicate.SchemasPredictionRequest { Input = input, Stream = stream, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs index 5e9cc2f..a225524 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.PredictionsCreate.g.cs @@ -8,12 +8,12 @@ public partial class ReplicateApi partial void PreparePredictionsCreateArguments( global::System.Net.Http.HttpClient httpClient, ref string? prefer, - global::Replicate.VersionPredictionRequest request); + global::Replicate.SchemasVersionPredictionRequest request); partial void PreparePredictionsCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? prefer, - global::Replicate.VersionPredictionRequest request); + global::Replicate.SchemasVersionPredictionRequest request); partial void ProcessPredictionsCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -39,7 +39,7 @@ partial void ProcessPredictionsCreateResponse( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task PredictionsCreateAsync( - global::Replicate.VersionPredictionRequest request, + global::Replicate.SchemasVersionPredictionRequest request, string? prefer = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -198,10 +198,10 @@ partial void ProcessPredictionsCreateResponse( string? prefer = default, bool? stream = default, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Replicate.VersionPredictionRequest + var __request = new global::Replicate.SchemasVersionPredictionRequest { Input = input, Stream = stream, diff --git a/src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsCreate.g.cs b/src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsCreate.g.cs index 9ae4ca1..c526049 100644 --- a/src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsCreate.g.cs +++ b/src/libs/Replicate/Generated/Replicate.ReplicateApi.TrainingsCreate.g.cs @@ -10,14 +10,14 @@ partial void PrepareTrainingsCreateArguments( ref string modelOwner, ref string modelName, ref string versionId, - global::Replicate.TrainingRequest request); + global::Replicate.SchemasTrainingRequest request); partial void PrepareTrainingsCreateRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string modelOwner, string modelName, string versionId, - global::Replicate.TrainingRequest request); + global::Replicate.SchemasTrainingRequest request); partial void ProcessTrainingsCreateResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -76,7 +76,7 @@ partial void ProcessTrainingsCreateResponse( string modelOwner, string modelName, string versionId, - global::Replicate.TrainingRequest request, + global::Replicate.SchemasTrainingRequest request, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); @@ -249,10 +249,10 @@ partial void ProcessTrainingsCreateResponse( string destination, object input, string? webhook = default, - global::System.Collections.Generic.IList? webhookEventsFilter = default, + global::System.Collections.Generic.IList? webhookEventsFilter = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Replicate.TrainingRequest + var __request = new global::Replicate.SchemasTrainingRequest { Destination = destination, Input = input, diff --git a/src/libs/Replicate/openapi.yaml b/src/libs/Replicate/openapi.yaml index 88edadc..e829767 100644 --- a/src/libs/Replicate/openapi.yaml +++ b/src/libs/Replicate/openapi.yaml @@ -459,12 +459,12 @@ paths: required: true schema: type: string - - $ref: '#/components/parameters/prefer_header' + - $ref: '#/components/parameters/parameters_prefer_header' requestBody: content: application/json: schema: - $ref: '#/components/schemas/prediction_request' + $ref: '#/components/schemas/schemas_prediction_request' responses: '201': description: 'Prediction has been created. If the `Prefer: wait` header is provided it will contain the final output.' @@ -607,12 +607,12 @@ paths: required: true schema: type: string - - $ref: '#/components/parameters/prefer_header' + - $ref: '#/components/parameters/parameters_prefer_header' requestBody: content: application/json: schema: - $ref: '#/components/schemas/prediction_request' + $ref: '#/components/schemas/schemas_prediction_request' responses: '201': description: 'Prediction has been created. If the `Prefer: wait` header is provided it will contain the final output.' @@ -726,7 +726,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/training_request' + $ref: '#/components/schemas/schemas_training_request' responses: '201': description: Success @@ -743,12 +743,12 @@ paths: description: "Create a prediction for the model version and inputs you provide.\n\nExample cURL request:\n\n```console\ncurl -s -X POST -H 'Prefer: wait' \\\n -d '{\"version\": \"5c7d5dc6dd8bf75c1acaa8565735e7986bc5b66206b55cca93cb72c9bf15ccaa\", \"input\": {\"text\": \"Alice\"}}' \\\n -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n -H 'Content-Type: application/json' \\\n https://api.replicate.com/v1/predictions\n```\n\nThe request will wait up to 60 seconds for the model to run. If this time is exceeded the prediction will be returned in a `\"starting\"` state and need to be retrieved using the `predictions.get` endpiont.\n\nFor a complete overview of the `predictions.create` API check out our documentation on [creating a prediction](https://replicate.com/docs/topics/predictions/create-a-prediction) which covers a variety of use cases.\n" operationId: predictions.create parameters: - - $ref: '#/components/parameters/prefer_header' + - $ref: '#/components/parameters/parameters_prefer_header' requestBody: content: application/json: schema: - $ref: '#/components/schemas/version_prediction_request' + $ref: '#/components/schemas/schemas_version_prediction_request' responses: '201': description: 'Prediction has been created. If the `Prefer: wait` header is provided it will contain the final output.' @@ -842,7 +842,7 @@ paths: description: The signing secret. components: schemas: - prediction_request: + schemas_prediction_request: required: - input type: object @@ -867,7 +867,7 @@ components: type: string description: "By default, we will send requests to your webhook URL whenever there are new outputs or the prediction has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the prediction request:\n\n- `start`: immediately on prediction start\n- `output`: each time a prediction generates an output (note that predictions can generate multiple outputs)\n- `logs`: each time log output is generated by a prediction\n- `completed`: when the prediction reaches a terminal state (succeeded/canceled/failed)\n\nFor example, if you only wanted requests to be sent at the start and end of the prediction, you would provide:\n\n```json\n{\n \"input\": {\n \"text\": \"Alice\"\n },\n \"webhook\": \"https://example.com/my-webhook\",\n \"webhook_events_filter\": [\"start\", \"completed\"]\n}\n```\n\nRequests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.\n" additionalProperties: false - training_request: + schemas_training_request: required: - destination - input @@ -892,7 +892,7 @@ components: - completed type: string description: "By default, we will send requests to your webhook URL whenever there are new outputs or the training has finished. You can change which events trigger webhook requests by specifying `webhook_events_filter` in the training request:\n\n- `start`: immediately on training start\n- `output`: each time a training generates an output (note that trainings can generate multiple outputs)\n- `logs`: each time log output is generated by a training\n- `completed`: when the training reaches a terminal state (succeeded/canceled/failed)\n\nFor example, if you only wanted requests to be sent at the start and end of the training, you would provide:\n\n```json\n{\n \"destination\": \"my-organization/my-model\",\n \"input\": {\n \"text\": \"Alice\"\n },\n \"webhook\": \"https://example.com/my-webhook\",\n \"webhook_events_filter\": [\"start\", \"completed\"]\n}\n```\n\nRequests for event types `output` and `logs` will be sent at most once every 500ms. If you request `start` and `completed` webhooks, then they'll always be sent regardless of throttling.\n" - version_prediction_request: + schemas_version_prediction_request: required: - version - input @@ -998,7 +998,7 @@ components: type: string format: string parameters: - prefer_header: + parameters_prefer_header: name: Prefer in: header description: "Leave the request open and wait for the model to finish generating output. Set to `wait=n` where n is a number of seconds between 1 and 60.\n\nSee https://replicate.com/docs/topics/predictions/create-a-prediction#sync-mode for more information."