diff --git a/src/libs/StabilityAI/Generated/StabilityAI.AudioResults.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.AudioResults.JsonSerializerContext.g.cs index 431d5cc..f2e59b2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.AudioResults.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.AudioResults.JsonSerializerContext.g.cs @@ -19,23 +19,21 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason), TypeInfoPropertyName = "AudioJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultAccept), TypeInfoPropertyName = "FetchAudioResultAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseStatus), TypeInfoPropertyName = "FetchAudioResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason?), TypeInfoPropertyName = "NullableAudioJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultAccept?), TypeInfoPropertyName = "NullableFetchAudioResultAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?), TypeInfoPropertyName = "NullableFetchAudioResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?), TypeInfoPropertyName = "NullableFetchAudioResultResponseFinishReason22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseStatus?), TypeInfoPropertyName = "NullableFetchAudioResultResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class AudioResultsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -83,6 +81,10 @@ private AudioResultsSourceGenerationContext(global::System.Text.Json.JsonSeriali public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -105,17 +107,13 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept) - - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept?) + typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason) - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason) + || typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?) - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?) + || typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept) - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?) + || typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept?) || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseStatus) @@ -126,34 +124,24 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultAcceptJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept?)) + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason)) { - return new global::StabilityAI.JsonConverters.FetchAudioResultAcceptNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason)) + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?)) { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonJsonConverter(); + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2)) + if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept)) { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2JsonConverter(); + return new global::StabilityAI.JsonConverters.FetchAudioResultAcceptJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?)) + if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept?)) { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2NullableJsonConverter(); + return new global::StabilityAI.JsonConverters.FetchAudioResultAcceptNullableJsonConverter(); } if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseStatus)) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResult.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResult.g.cs index 8424eca..62a55f2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResult.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResult.g.cs @@ -94,7 +94,7 @@ partial void ProcessFetchAudioResultResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task FetchAudioResultAsync( + public async global::System.Threading.Tasks.Task FetchAudioResultAsync( string id, global::StabilityAI.FetchAudioResultAccept? accept = default, string? stabilityClientId = default, @@ -160,7 +160,7 @@ partial void ProcessFetchAudioResultResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> FetchAudioResultAsResponseAsync( + public async global::System.Threading.Tasks.Task> FetchAudioResultAsResponseAsync( string id, global::StabilityAI.FetchAudioResultAccept? accept = default, string? stabilityClientId = default, @@ -455,19 +455,19 @@ partial void ProcessFetchAudioResultResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.FetchAudioResultResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessFetchAudioResultResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -492,19 +492,19 @@ partial void ProcessFetchAudioResultResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.FetchAudioResultResponse5? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -513,7 +513,7 @@ partial void ProcessFetchAudioResultResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -529,19 +529,19 @@ partial void ProcessFetchAudioResultResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.FetchAudioResultResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -550,7 +550,7 @@ partial void ProcessFetchAudioResultResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -583,9 +583,9 @@ partial void ProcessFetchAudioResultResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.FetchAudioResultResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -615,9 +615,9 @@ partial void ProcessFetchAudioResultResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.FetchAudioResultResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResultAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResultAsBytes.g.cs index e119e29..5e9c624 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResultAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.AudioResultsClient.FetchAudioResultAsBytes.g.cs @@ -455,19 +455,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.FetchAudioResultResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -492,19 +492,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.FetchAudioResultResponse5? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -513,7 +513,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -529,19 +529,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.FetchAudioResultResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -550,7 +550,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -952,19 +952,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.FetchAudioResultResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.FetchAudioResultResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -973,7 +973,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -989,19 +989,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.FetchAudioResultResponse5? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.FetchAudioResultResponse5.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1010,7 +1010,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -1026,19 +1026,19 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.FetchAudioResultResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.FetchAudioResultResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1047,7 +1047,7 @@ partial void ProcessFetchAudioResultAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Control.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Control.JsonSerializerContext.g.cs index e1ccfd5..c212b92 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Control.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Control.JsonSerializerContext.g.cs @@ -19,97 +19,44 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AspectRatio), TypeInfoPropertyName = "AspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlSketchRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlSketchRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStructureRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlStructureRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageControlStyleRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStyleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlStyleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStyleTransferRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchAccept), TypeInfoPropertyName = "CreateStableImageControlSketchAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureAccept), TypeInfoPropertyName = "CreateStableImageControlStructureAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleAccept), TypeInfoPropertyName = "CreateStableImageControlStyleAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept), TypeInfoPropertyName = "CreateStableImageControlStyleTransferAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset?), TypeInfoPropertyName = "NullableStylePreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AspectRatio?), TypeInfoPropertyName = "NullableAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureRequestStylePreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleTransferRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchAccept?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureAccept?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleAccept?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleTransferAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageControlSketchResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageControlStructureResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleTransferResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleTransferResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageControlStyleTransferResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ControlSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -156,6 +103,10 @@ private ControlSourceGenerationContext(global::System.Text.Json.JsonSerializerOp public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -182,34 +133,30 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat?) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset) + || typeToConvert == typeof(global::StabilityAI.StylePreset) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset?) + || typeToConvert == typeof(global::StabilityAI.StylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat) + || typeToConvert == typeof(global::StabilityAI.AspectRatio) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat?) + || typeToConvert == typeof(global::StabilityAI.AspectRatio?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset?) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio?) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat?) || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat?) @@ -228,55 +175,7 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3?); + || typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -293,54 +192,54 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat)) + if (typeToConvert == typeof(global::StabilityAI.AspectRatio)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatJsonConverter(); + return new global::StabilityAI.JsonConverters.AspectRatioJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.AspectRatio?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.AspectRatioNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatNullableJsonConverter(); } if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat)) @@ -353,16 +252,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat)) { return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferRequestOutputFormatJsonConverter(); @@ -412,126 +301,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferAcceptNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketch.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketch.g.cs index 52c9743..9a90f5f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketch.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketch.g.cs @@ -127,7 +127,7 @@ partial void ProcessCreateStableImageControlSketchResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, global::StabilityAI.CreateStableImageControlSketchRequest request, @@ -228,7 +228,7 @@ partial void ProcessCreateStableImageControlSketchResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlSketchRequest request, @@ -617,19 +617,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -638,7 +638,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -691,19 +691,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -712,7 +712,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -728,19 +728,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -749,7 +749,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -765,19 +765,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -786,7 +786,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -802,19 +802,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -823,7 +823,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -856,9 +856,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlSketchResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -888,9 +888,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlSketchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1033,7 +1033,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, string prompt, byte[] image, @@ -1046,7 +1046,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1199,7 +1199,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -1212,7 +1212,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1605,19 +1605,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1626,7 +1626,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1679,19 +1679,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1700,7 +1700,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1716,19 +1716,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1737,7 +1737,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1753,19 +1753,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1774,7 +1774,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1790,19 +1790,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1811,7 +1811,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1845,7 +1845,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageControlSketchResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1873,7 +1873,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageControlSketchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2036,7 +2036,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -2049,7 +2049,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2442,19 +2442,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2463,7 +2463,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2516,19 +2516,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2537,7 +2537,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2553,19 +2553,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2574,7 +2574,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2590,19 +2590,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2611,7 +2611,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2627,19 +2627,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2648,7 +2648,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2681,9 +2681,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlSketchResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2713,9 +2713,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlSketchResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketchAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketchAsBytes.g.cs index 390eae6..5f5b702 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketchAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlSketchAsBytes.g.cs @@ -617,19 +617,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -638,7 +638,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -691,19 +691,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -712,7 +712,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -728,19 +728,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -749,7 +749,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -765,19 +765,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -786,7 +786,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -802,19 +802,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -823,7 +823,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1350,19 +1350,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1371,7 +1371,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1424,19 +1424,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1445,7 +1445,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1461,19 +1461,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1482,7 +1482,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1498,19 +1498,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1519,7 +1519,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1535,19 +1535,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1556,7 +1556,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1771,7 +1771,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1937,7 +1937,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2330,19 +2330,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2351,7 +2351,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2404,19 +2404,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2425,7 +2425,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2441,19 +2441,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2462,7 +2462,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2478,19 +2478,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2499,7 +2499,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2515,19 +2515,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2536,7 +2536,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2766,7 +2766,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3159,19 +3159,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3180,7 +3180,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3233,19 +3233,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3254,7 +3254,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3270,19 +3270,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3291,7 +3291,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3307,19 +3307,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3328,7 +3328,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3344,19 +3344,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3365,7 +3365,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3566,7 +3566,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3959,19 +3959,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlSketchResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlSketchResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3980,7 +3980,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4033,19 +4033,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlSketchResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlSketchResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4054,7 +4054,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4070,19 +4070,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlSketchResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlSketchResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4091,7 +4091,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4107,19 +4107,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlSketchResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlSketchResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4128,7 +4128,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4144,19 +4144,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlSketchResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlSketchResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4165,7 +4165,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructure.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructure.g.cs index 2bf776f..c164890 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructure.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructure.g.cs @@ -126,7 +126,7 @@ partial void ProcessCreateStableImageControlStructureResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, global::StabilityAI.CreateStableImageControlStructureRequest request, @@ -226,7 +226,7 @@ partial void ProcessCreateStableImageControlStructureResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStructureRequest request, @@ -615,19 +615,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -636,7 +636,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -689,19 +689,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -710,7 +710,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -726,19 +726,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -747,7 +747,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -763,19 +763,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -784,7 +784,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -800,19 +800,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -821,7 +821,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -854,9 +854,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStructureResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -886,9 +886,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStructureResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1030,7 +1030,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, string prompt, byte[] image, @@ -1043,7 +1043,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1195,7 +1195,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -1208,7 +1208,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1601,19 +1601,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1622,7 +1622,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1675,19 +1675,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1696,7 +1696,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1712,19 +1712,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1733,7 +1733,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1749,19 +1749,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1770,7 +1770,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1786,19 +1786,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1807,7 +1807,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1841,7 +1841,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageControlStructureResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1869,7 +1869,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageControlStructureResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2031,7 +2031,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -2044,7 +2044,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2437,19 +2437,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2458,7 +2458,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2511,19 +2511,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2532,7 +2532,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2548,19 +2548,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2569,7 +2569,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2585,19 +2585,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2606,7 +2606,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2622,19 +2622,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2643,7 +2643,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2676,9 +2676,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStructureResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2708,9 +2708,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStructureResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructureAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructureAsBytes.g.cs index 676aa15..cd03196 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructureAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStructureAsBytes.g.cs @@ -615,19 +615,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -636,7 +636,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -689,19 +689,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -710,7 +710,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -726,19 +726,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -747,7 +747,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -763,19 +763,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -784,7 +784,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -800,19 +800,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -821,7 +821,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1347,19 +1347,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1368,7 +1368,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1421,19 +1421,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1442,7 +1442,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1458,19 +1458,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1479,7 +1479,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1495,19 +1495,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1516,7 +1516,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1532,19 +1532,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1553,7 +1553,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1767,7 +1767,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1932,7 +1932,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2325,19 +2325,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2346,7 +2346,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2399,19 +2399,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2420,7 +2420,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2436,19 +2436,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2457,7 +2457,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2473,19 +2473,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2494,7 +2494,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2510,19 +2510,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2531,7 +2531,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2760,7 +2760,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3153,19 +3153,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3174,7 +3174,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3227,19 +3227,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3248,7 +3248,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3264,19 +3264,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3285,7 +3285,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3301,19 +3301,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3322,7 +3322,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3338,19 +3338,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3359,7 +3359,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3559,7 +3559,7 @@ request.Imagename is null string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3952,19 +3952,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStructureResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStructureResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3973,7 +3973,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4026,19 +4026,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStructureResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStructureResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4047,7 +4047,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4063,19 +4063,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStructureResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStructureResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4084,7 +4084,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4100,19 +4100,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStructureResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStructureResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4121,7 +4121,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4137,19 +4137,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStructureResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStructureResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4158,7 +4158,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyle.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyle.g.cs index 0d94ff6..52f7f50 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyle.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyle.g.cs @@ -124,7 +124,7 @@ partial void ProcessCreateStableImageControlStyleResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleRequest request, @@ -222,7 +222,7 @@ partial void ProcessCreateStableImageControlStyleResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleRequest request, @@ -619,19 +619,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -640,7 +640,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -693,19 +693,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -730,19 +730,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -751,7 +751,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -767,19 +767,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -804,19 +804,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -825,7 +825,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -858,9 +858,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStyleResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -890,9 +890,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStyleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1037,7 +1037,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, string prompt, byte[] image, @@ -1047,11 +1047,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1206,7 +1206,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -1216,11 +1216,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1622,19 +1622,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1643,7 +1643,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1696,19 +1696,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1717,7 +1717,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1733,19 +1733,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1754,7 +1754,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1770,19 +1770,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1791,7 +1791,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1807,19 +1807,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1828,7 +1828,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1862,7 +1862,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageControlStyleResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1890,7 +1890,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageControlStyleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2054,7 +2054,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -2064,11 +2064,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2470,19 +2470,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2491,7 +2491,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2544,19 +2544,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2565,7 +2565,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2581,19 +2581,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2602,7 +2602,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2618,19 +2618,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2639,7 +2639,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2655,19 +2655,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2676,7 +2676,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2709,9 +2709,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStyleResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2741,9 +2741,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStyleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleAsBytes.g.cs index f2969e3..77305b8 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleAsBytes.g.cs @@ -619,19 +619,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -640,7 +640,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -693,19 +693,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -730,19 +730,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -751,7 +751,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -767,19 +767,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -804,19 +804,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -825,7 +825,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1357,19 +1357,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1378,7 +1378,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1431,19 +1431,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1452,7 +1452,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1468,19 +1468,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1489,7 +1489,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1505,19 +1505,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1526,7 +1526,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1542,19 +1542,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1563,7 +1563,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1777,11 +1777,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1946,11 +1946,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2352,19 +2352,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2373,7 +2373,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2426,19 +2426,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2447,7 +2447,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2463,19 +2463,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2484,7 +2484,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2500,19 +2500,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2521,7 +2521,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2537,19 +2537,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2558,7 +2558,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2786,11 +2786,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3192,19 +3192,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3213,7 +3213,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3266,19 +3266,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3287,7 +3287,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3303,19 +3303,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3324,7 +3324,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3340,19 +3340,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3361,7 +3361,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3377,19 +3377,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3398,7 +3398,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3597,11 +3597,11 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -4003,19 +4003,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4024,7 +4024,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4077,19 +4077,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4098,7 +4098,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4114,19 +4114,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4135,7 +4135,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4151,19 +4151,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4172,7 +4172,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4188,19 +4188,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4209,7 +4209,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransfer.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransfer.g.cs index a074567..056b73f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransfer.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransfer.g.cs @@ -130,7 +130,7 @@ partial void ProcessCreateStableImageControlStyleTransferResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleTransferRequest request, @@ -234,7 +234,7 @@ partial void ProcessCreateStableImageControlStyleTransferResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleTransferRequest request, @@ -673,19 +673,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -747,19 +747,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -784,19 +784,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -805,7 +805,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -821,19 +821,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -842,7 +842,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -858,19 +858,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -879,7 +879,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -912,9 +912,9 @@ request.StyleImagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -944,9 +944,9 @@ request.StyleImagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1126,7 +1126,7 @@ request.StyleImagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, byte[] initImage, string initImagename, @@ -1334,7 +1334,7 @@ request.StyleImagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + public async global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, global::System.IO.Stream initImage, string initImagename, @@ -1797,19 +1797,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1818,7 +1818,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1871,19 +1871,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1892,7 +1892,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1908,19 +1908,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1929,7 +1929,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1945,19 +1945,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1966,7 +1966,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1982,19 +1982,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2003,7 +2003,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2037,7 +2037,7 @@ request.StyleImagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -2065,7 +2065,7 @@ request.StyleImagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2264,7 +2264,7 @@ request.StyleImagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( string contentType, global::System.IO.Stream initImage, string initImagename, @@ -2727,19 +2727,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2748,7 +2748,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2801,19 +2801,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2822,7 +2822,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2838,19 +2838,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2859,7 +2859,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2875,19 +2875,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2896,7 +2896,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2912,19 +2912,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2933,7 +2933,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2966,9 +2966,9 @@ request.StyleImagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2998,9 +2998,9 @@ request.StyleImagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageControlStyleTransferResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransferAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransferAsBytes.g.cs index 7444ef1..e1ab0f2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransferAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ControlClient.CreateStableImageControlStyleTransferAsBytes.g.cs @@ -673,19 +673,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -747,19 +747,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -784,19 +784,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -805,7 +805,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -821,19 +821,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -842,7 +842,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -858,19 +858,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -879,7 +879,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1459,19 +1459,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1480,7 +1480,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1533,19 +1533,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1554,7 +1554,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1570,19 +1570,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1591,7 +1591,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1607,19 +1607,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1628,7 +1628,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1644,19 +1644,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1665,7 +1665,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2575,19 +2575,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2596,7 +2596,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2649,19 +2649,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2670,7 +2670,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2686,19 +2686,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2707,7 +2707,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2723,19 +2723,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2744,7 +2744,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2760,19 +2760,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2781,7 +2781,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3497,19 +3497,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3518,7 +3518,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3571,19 +3571,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3592,7 +3592,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3608,19 +3608,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3629,7 +3629,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3645,19 +3645,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3666,7 +3666,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3682,19 +3682,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3703,7 +3703,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -4390,19 +4390,19 @@ request.StyleImagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageControlStyleTransferResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4411,7 +4411,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4464,19 +4464,19 @@ request.StyleImagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageControlStyleTransferResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4485,7 +4485,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4501,19 +4501,19 @@ request.StyleImagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageControlStyleTransferResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4522,7 +4522,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4538,19 +4538,19 @@ request.StyleImagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageControlStyleTransferResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4559,7 +4559,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4575,19 +4575,19 @@ request.StyleImagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageControlStyleTransferResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageControlStyleTransferResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4596,7 +4596,7 @@ request.StyleImagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Edit.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Edit.JsonSerializerContext.g.cs index 84e7f93..94eeefa 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Edit.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Edit.JsonSerializerContext.g.cs @@ -19,28 +19,29 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AsyncGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditEraseRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditInpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditInpaintRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditOutpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditOutpaintRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest))] @@ -53,87 +54,17 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceAccept), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorAccept), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset?), TypeInfoPropertyName = "NullableStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditEraseRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditInpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageEditInpaintRequestStylePreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditOutpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageEditOutpaintRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageEditRemoveBackgroundRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestKeepOriginalBackground?), TypeInfoPropertyName = "NullableCreateStableImageEditReplaceBackgroundAndRelightRequestKeepOriginalBackground2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection?), TypeInfoPropertyName = "NullableCreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection2")] @@ -144,23 +75,6 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceAccept?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorAccept?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept?), TypeInfoPropertyName = "NullableCreateStableImageEditRemoveBackgroundAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditEraseResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditEraseResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageEditEraseResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageEditInpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditOutpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditOutpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageEditOutpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndReplaceResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageEditSearchAndRecolorResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageEditRemoveBackgroundResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageEditRemoveBackgroundResponseFinishReason22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class EditSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -207,6 +121,10 @@ private EditSourceGenerationContext(global::System.Text.Json.JsonSerializerOptio public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -233,6 +151,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) + + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) + + || typeToConvert == typeof(global::StabilityAI.StylePreset) + + || typeToConvert == typeof(global::StabilityAI.StylePreset?) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat?) @@ -241,34 +167,18 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat?) @@ -307,75 +217,7 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2?); + || typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -392,54 +234,54 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseRequestOutputFormatJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestOutputFormatJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatNullableJsonConverter(); } if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat)) @@ -452,16 +294,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat)) { return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestOutputFormatJsonConverter(); @@ -472,16 +304,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat)) { return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundRequestOutputFormatJsonConverter(); @@ -581,176 +403,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundAcceptNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditErase.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditErase.g.cs index 0dd87b7..6e4e3ab 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditErase.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditErase.g.cs @@ -123,7 +123,7 @@ partial void ProcessCreateStableImageEditEraseResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, global::StabilityAI.CreateStableImageEditEraseRequest request, @@ -220,7 +220,7 @@ partial void ProcessCreateStableImageEditEraseResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditEraseRequest request, @@ -631,19 +631,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -652,7 +652,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -705,19 +705,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -726,7 +726,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -742,19 +742,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -763,7 +763,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -779,19 +779,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -800,7 +800,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -833,9 +833,9 @@ request.Maskname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditEraseResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -865,9 +865,9 @@ request.Maskname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditEraseResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1022,7 +1022,7 @@ request.Maskname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, byte[] image, string imagename, @@ -1197,7 +1197,7 @@ request.Maskname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1623,19 +1623,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1644,7 +1644,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1697,19 +1697,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1718,7 +1718,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1734,19 +1734,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1755,7 +1755,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1771,19 +1771,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1792,7 +1792,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1826,7 +1826,7 @@ request.Maskname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditEraseResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1854,7 +1854,7 @@ request.Maskname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditEraseResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2028,7 +2028,7 @@ request.Maskname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2454,19 +2454,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2475,7 +2475,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2528,19 +2528,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2549,7 +2549,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2565,19 +2565,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2586,7 +2586,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2602,19 +2602,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2623,7 +2623,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2656,9 +2656,9 @@ request.Maskname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditEraseResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2688,9 +2688,9 @@ request.Maskname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditEraseResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditEraseAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditEraseAsBytes.g.cs index c381490..25d1882 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditEraseAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditEraseAsBytes.g.cs @@ -631,19 +631,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -652,7 +652,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -705,19 +705,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -726,7 +726,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -742,19 +742,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -763,7 +763,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -779,19 +779,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -800,7 +800,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1345,19 +1345,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1366,7 +1366,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1419,19 +1419,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1440,7 +1440,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1456,19 +1456,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1477,7 +1477,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1493,19 +1493,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1514,7 +1514,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2329,19 +2329,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2350,7 +2350,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2403,19 +2403,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2424,7 +2424,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2440,19 +2440,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2461,7 +2461,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2477,19 +2477,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2498,7 +2498,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3152,19 +3152,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3173,7 +3173,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3226,19 +3226,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3247,7 +3247,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3263,19 +3263,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3284,7 +3284,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3300,19 +3300,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3321,7 +3321,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3946,19 +3946,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditEraseResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditEraseResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3967,7 +3967,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4020,19 +4020,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditEraseResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditEraseResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4041,7 +4041,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4057,19 +4057,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditEraseResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditEraseResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4078,7 +4078,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4094,19 +4094,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditEraseResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditEraseResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4115,7 +4115,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaint.g.cs index c9a1339..a5a2c7a 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaint.g.cs @@ -128,7 +128,7 @@ partial void ProcessCreateStableImageEditInpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, global::StabilityAI.CreateStableImageEditInpaintRequest request, @@ -230,7 +230,7 @@ partial void ProcessCreateStableImageEditInpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditInpaintRequest request, @@ -661,19 +661,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -682,7 +682,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -735,19 +735,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -756,7 +756,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -772,19 +772,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -793,7 +793,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -809,19 +809,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -830,7 +830,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -846,19 +846,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -867,7 +867,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -900,9 +900,9 @@ request.Maskname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -932,9 +932,9 @@ request.Maskname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1108,7 +1108,7 @@ request.Maskname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, byte[] image, string imagename, @@ -1123,7 +1123,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1309,7 +1309,7 @@ request.Maskname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1324,7 +1324,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1761,19 +1761,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1782,7 +1782,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1835,19 +1835,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1856,7 +1856,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1872,19 +1872,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1893,7 +1893,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1909,19 +1909,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1930,7 +1930,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1946,19 +1946,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1967,7 +1967,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2001,7 +2001,7 @@ request.Maskname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -2029,7 +2029,7 @@ request.Maskname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2223,7 +2223,7 @@ request.Maskname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2238,7 +2238,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2675,19 +2675,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2696,7 +2696,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2749,19 +2749,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2770,7 +2770,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2786,19 +2786,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2807,7 +2807,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2823,19 +2823,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2844,7 +2844,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2860,19 +2860,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2881,7 +2881,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2914,9 +2914,9 @@ request.Maskname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2946,9 +2946,9 @@ request.Maskname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaintAsBytes.g.cs index 38affc4..25cc395 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditInpaintAsBytes.g.cs @@ -661,19 +661,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -682,7 +682,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -735,19 +735,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -756,7 +756,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -772,19 +772,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -793,7 +793,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -809,19 +809,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -830,7 +830,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -846,19 +846,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -867,7 +867,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1437,19 +1437,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1458,7 +1458,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1511,19 +1511,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1532,7 +1532,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1548,19 +1548,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1569,7 +1569,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1585,19 +1585,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1606,7 +1606,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1622,19 +1622,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1643,7 +1643,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1891,7 +1891,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2092,7 +2092,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2529,19 +2529,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2550,7 +2550,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2603,19 +2603,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2624,7 +2624,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2640,19 +2640,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2661,7 +2661,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2677,19 +2677,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2698,7 +2698,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2714,19 +2714,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2735,7 +2735,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2998,7 +2998,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3435,19 +3435,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3456,7 +3456,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3509,19 +3509,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3530,7 +3530,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3546,19 +3546,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3567,7 +3567,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3583,19 +3583,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3604,7 +3604,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3620,19 +3620,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3641,7 +3641,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3875,7 +3875,7 @@ request.Maskname is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -4312,19 +4312,19 @@ request.Maskname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4333,7 +4333,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4386,19 +4386,19 @@ request.Maskname is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditInpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4407,7 +4407,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4423,19 +4423,19 @@ request.Maskname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditInpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4444,7 +4444,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4460,19 +4460,19 @@ request.Maskname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditInpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4481,7 +4481,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4497,19 +4497,19 @@ request.Maskname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditInpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditInpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4518,7 +4518,7 @@ request.Maskname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaint.g.cs index 394c999..7c28fa9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaint.g.cs @@ -130,7 +130,7 @@ partial void ProcessCreateStableImageEditOutpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, global::StabilityAI.CreateStableImageEditOutpaintRequest request, @@ -234,7 +234,7 @@ partial void ProcessCreateStableImageEditOutpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditOutpaintRequest request, @@ -651,19 +651,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -672,7 +672,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -725,19 +725,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -746,7 +746,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -762,19 +762,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -783,7 +783,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -799,19 +799,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -820,7 +820,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -836,19 +836,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -857,7 +857,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -890,9 +890,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -922,9 +922,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1079,7 +1079,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, byte[] image, string imagename, @@ -1095,7 +1095,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1263,7 +1263,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1279,7 +1279,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1703,19 +1703,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1724,7 +1724,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1777,19 +1777,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1798,7 +1798,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1814,19 +1814,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1835,7 +1835,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1851,19 +1851,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1872,7 +1872,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1888,19 +1888,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1909,7 +1909,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1943,7 +1943,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1971,7 +1971,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2146,7 +2146,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2162,7 +2162,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2586,19 +2586,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2607,7 +2607,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2660,19 +2660,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2681,7 +2681,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2697,19 +2697,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2718,7 +2718,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2734,19 +2734,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2755,7 +2755,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2771,19 +2771,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2792,7 +2792,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2825,9 +2825,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2857,9 +2857,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditOutpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaintAsBytes.g.cs index ef5bc99..3db54f4 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditOutpaintAsBytes.g.cs @@ -651,19 +651,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -672,7 +672,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -725,19 +725,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -746,7 +746,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -762,19 +762,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -783,7 +783,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -799,19 +799,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -820,7 +820,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -836,19 +836,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -857,7 +857,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1415,19 +1415,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1436,7 +1436,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1489,19 +1489,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1510,7 +1510,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1526,19 +1526,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1547,7 +1547,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1563,19 +1563,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1584,7 +1584,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1600,19 +1600,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1621,7 +1621,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1851,7 +1851,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2035,7 +2035,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2459,19 +2459,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2480,7 +2480,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2533,19 +2533,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2554,7 +2554,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2570,19 +2570,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2591,7 +2591,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2607,19 +2607,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2628,7 +2628,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2644,19 +2644,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2665,7 +2665,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2910,7 +2910,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3334,19 +3334,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3355,7 +3355,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3408,19 +3408,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3429,7 +3429,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3445,19 +3445,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3466,7 +3466,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3482,19 +3482,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3503,7 +3503,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3519,19 +3519,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3540,7 +3540,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3756,7 +3756,7 @@ request.Imagename is null string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -4180,19 +4180,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditOutpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4201,7 +4201,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4254,19 +4254,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditOutpaintResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4275,7 +4275,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4291,19 +4291,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditOutpaintResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4312,7 +4312,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4328,19 +4328,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditOutpaintResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4349,7 +4349,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4365,19 +4365,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditOutpaintResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditOutpaintResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4386,7 +4386,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackground.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackground.g.cs index 3a7a9a8..6eeb5d0 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackground.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackground.g.cs @@ -117,7 +117,7 @@ partial void ProcessCreateStableImageEditRemoveBackgroundResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest request, @@ -208,7 +208,7 @@ partial void ProcessCreateStableImageEditRemoveBackgroundResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest request, @@ -561,19 +561,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -635,19 +635,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -656,7 +656,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -672,19 +672,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -693,7 +693,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -709,19 +709,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -730,7 +730,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -763,9 +763,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -795,9 +795,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -907,7 +907,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, byte[] image, string imagename, @@ -1028,7 +1028,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1388,19 +1388,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1409,7 +1409,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1462,19 +1462,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1483,7 +1483,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1499,19 +1499,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1520,7 +1520,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1536,19 +1536,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1557,7 +1557,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1591,7 +1591,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1619,7 +1619,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1747,7 +1747,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2107,19 +2107,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2128,7 +2128,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2181,19 +2181,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2202,7 +2202,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2218,19 +2218,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2239,7 +2239,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2255,19 +2255,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2276,7 +2276,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2309,9 +2309,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2341,9 +2341,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackgroundAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackgroundAsBytes.g.cs index 25ceb29..3d899fe 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackgroundAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditRemoveBackgroundAsBytes.g.cs @@ -561,19 +561,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -635,19 +635,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -656,7 +656,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -672,19 +672,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -693,7 +693,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -709,19 +709,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -730,7 +730,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1211,19 +1211,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1232,7 +1232,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1285,19 +1285,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1306,7 +1306,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1322,19 +1322,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1343,7 +1343,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1359,19 +1359,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1380,7 +1380,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2030,19 +2030,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2051,7 +2051,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2104,19 +2104,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2125,7 +2125,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2141,19 +2141,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2162,7 +2162,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2178,19 +2178,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2199,7 +2199,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2741,19 +2741,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2762,7 +2762,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2815,19 +2815,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2836,7 +2836,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2852,19 +2852,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2873,7 +2873,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2889,19 +2889,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2910,7 +2910,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3423,19 +3423,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3444,7 +3444,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3497,19 +3497,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3518,7 +3518,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3534,19 +3534,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3555,7 +3555,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3571,19 +3571,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3592,7 +3592,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs index 12f9889..710da67 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs @@ -126,7 +126,7 @@ partial void ProcessCreateStableImageEditReplaceBackgroundAndRelightResponseCont /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest request, @@ -226,7 +226,7 @@ partial void ProcessCreateStableImageEditReplaceBackgroundAndRelightResponseCont /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest request, @@ -724,19 +724,19 @@ request.LightReferencename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -745,7 +745,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -798,19 +798,19 @@ request.LightReferencename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -819,7 +819,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -835,19 +835,19 @@ request.LightReferencename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -856,7 +856,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -872,19 +872,19 @@ request.LightReferencename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -893,7 +893,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -909,19 +909,19 @@ request.LightReferencename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -930,7 +930,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -963,9 +963,9 @@ request.LightReferencename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -995,9 +995,9 @@ request.LightReferencename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1216,7 +1216,7 @@ request.LightReferencename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, byte[] subjectImage, string subjectImagename, @@ -1467,7 +1467,7 @@ request.LightReferencename is null /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, global::System.IO.Stream subjectImage, string subjectImagename, @@ -1998,19 +1998,19 @@ request.LightReferencename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2019,7 +2019,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2072,19 +2072,19 @@ request.LightReferencename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2093,7 +2093,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2109,19 +2109,19 @@ request.LightReferencename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2130,7 +2130,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2146,19 +2146,19 @@ request.LightReferencename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2167,7 +2167,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2183,19 +2183,19 @@ request.LightReferencename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2204,7 +2204,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2238,7 +2238,7 @@ request.LightReferencename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -2266,7 +2266,7 @@ request.LightReferencename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2500,7 +2500,7 @@ request.LightReferencename is null /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( string contentType, global::System.IO.Stream subjectImage, string subjectImagename, @@ -3031,19 +3031,19 @@ request.LightReferencename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3052,7 +3052,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3105,19 +3105,19 @@ request.LightReferencename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3126,7 +3126,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3142,19 +3142,19 @@ request.LightReferencename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3163,7 +3163,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3179,19 +3179,19 @@ request.LightReferencename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3200,7 +3200,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3216,19 +3216,19 @@ request.LightReferencename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3237,7 +3237,7 @@ request.LightReferencename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3270,9 +3270,9 @@ request.LightReferencename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -3302,9 +3302,9 @@ request.LightReferencename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolor.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolor.g.cs index cd3dd50..0e610f9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolor.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolor.g.cs @@ -127,7 +127,7 @@ partial void ProcessCreateStableImageEditSearchAndRecolorResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest request, @@ -228,7 +228,7 @@ partial void ProcessCreateStableImageEditSearchAndRecolorResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest request, @@ -621,19 +621,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -642,7 +642,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -695,19 +695,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -716,7 +716,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -732,19 +732,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -753,7 +753,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -769,19 +769,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -790,7 +790,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -806,19 +806,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -827,7 +827,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -860,9 +860,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -892,9 +892,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1043,7 +1043,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, byte[] image, string imagename, @@ -1057,7 +1057,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1217,7 +1217,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1231,7 +1231,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1629,19 +1629,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1650,7 +1650,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1703,19 +1703,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1724,7 +1724,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1740,19 +1740,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1761,7 +1761,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1777,19 +1777,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1798,7 +1798,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1814,19 +1814,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1835,7 +1835,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1869,7 +1869,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1897,7 +1897,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2066,7 +2066,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2080,7 +2080,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2478,19 +2478,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2499,7 +2499,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2552,19 +2552,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2573,7 +2573,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2589,19 +2589,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2610,7 +2610,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2626,19 +2626,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2647,7 +2647,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2663,19 +2663,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2684,7 +2684,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2717,9 +2717,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2749,9 +2749,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs index 05b1ee5..0600bcc 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs @@ -621,19 +621,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -642,7 +642,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -695,19 +695,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -716,7 +716,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -732,19 +732,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -753,7 +753,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -769,19 +769,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -790,7 +790,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -806,19 +806,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -827,7 +827,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1358,19 +1358,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1379,7 +1379,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1432,19 +1432,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1453,7 +1453,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1469,19 +1469,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1490,7 +1490,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1506,19 +1506,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1527,7 +1527,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1543,19 +1543,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1564,7 +1564,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1786,7 +1786,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1960,7 +1960,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2358,19 +2358,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2379,7 +2379,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2432,19 +2432,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2453,7 +2453,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2469,19 +2469,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2490,7 +2490,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2506,19 +2506,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2527,7 +2527,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2543,19 +2543,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2564,7 +2564,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2801,7 +2801,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3199,19 +3199,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3220,7 +3220,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3273,19 +3273,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3294,7 +3294,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3310,19 +3310,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3331,7 +3331,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3347,19 +3347,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3368,7 +3368,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3384,19 +3384,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3405,7 +3405,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3613,7 +3613,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -4011,19 +4011,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4032,7 +4032,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4085,19 +4085,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4106,7 +4106,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4122,19 +4122,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4143,7 +4143,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4159,19 +4159,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4180,7 +4180,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4196,19 +4196,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4217,7 +4217,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplace.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplace.g.cs index bc33164..3e7ebbe 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplace.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplace.g.cs @@ -126,7 +126,7 @@ partial void ProcessCreateStableImageEditSearchAndReplaceResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest request, @@ -226,7 +226,7 @@ partial void ProcessCreateStableImageEditSearchAndReplaceResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest request, @@ -619,19 +619,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -640,7 +640,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -693,19 +693,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -730,19 +730,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -751,7 +751,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -767,19 +767,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -804,19 +804,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -825,7 +825,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -858,9 +858,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -890,9 +890,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1040,7 +1040,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, byte[] image, string imagename, @@ -1054,7 +1054,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1213,7 +1213,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + public async global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1227,7 +1227,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1625,19 +1625,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1646,7 +1646,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1699,19 +1699,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1720,7 +1720,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1736,19 +1736,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1757,7 +1757,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1773,19 +1773,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1794,7 +1794,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1810,19 +1810,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1831,7 +1831,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1865,7 +1865,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1893,7 +1893,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2061,7 +2061,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2075,7 +2075,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2473,19 +2473,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2494,7 +2494,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2547,19 +2547,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2568,7 +2568,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2584,19 +2584,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2605,7 +2605,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2621,19 +2621,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2642,7 +2642,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2658,19 +2658,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2679,7 +2679,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2712,9 +2712,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2744,9 +2744,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs index 9b20d28..e534b5f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.EditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs @@ -619,19 +619,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -640,7 +640,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -693,19 +693,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -730,19 +730,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -751,7 +751,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -767,19 +767,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -804,19 +804,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -825,7 +825,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1355,19 +1355,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1376,7 +1376,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1429,19 +1429,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1450,7 +1450,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1466,19 +1466,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1487,7 +1487,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1503,19 +1503,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1524,7 +1524,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1540,19 +1540,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1561,7 +1561,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1782,7 +1782,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1955,7 +1955,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2353,19 +2353,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2374,7 +2374,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2427,19 +2427,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2448,7 +2448,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2464,19 +2464,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2485,7 +2485,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2501,19 +2501,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2522,7 +2522,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2538,19 +2538,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2559,7 +2559,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2795,7 +2795,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -3193,19 +3193,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3214,7 +3214,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3267,19 +3267,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3288,7 +3288,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3304,19 +3304,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3325,7 +3325,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3341,19 +3341,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3362,7 +3362,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3378,19 +3378,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3399,7 +3399,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3606,7 +3606,7 @@ request.Imagename is null double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -4004,19 +4004,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4025,7 +4025,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4078,19 +4078,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4099,7 +4099,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -4115,19 +4115,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4136,7 +4136,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4152,19 +4152,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4173,7 +4173,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4189,19 +4189,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4210,7 +4210,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Generate.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Generate.JsonSerializerContext.g.cs index e0522e6..9822340 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Generate.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Generate.JsonSerializerContext.g.cs @@ -19,85 +19,47 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AspectRatio), TypeInfoPropertyName = "AspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Request))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestMode), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestModel), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraAccept), TypeInfoPropertyName = "CreateStableImageGenerateUltraAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreAccept), TypeInfoPropertyName = "CreateStableImageGenerateCoreAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Accept), TypeInfoPropertyName = "CreateStableImageGenerateSd3Accept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraRequestAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset?), TypeInfoPropertyName = "NullableStylePreset2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AspectRatio?), TypeInfoPropertyName = "NullableAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraRequestStylePreset2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreRequestAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreRequestOutputFormat2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestMode?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3RequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestAspectRatio?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3RequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestModel?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3RequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3RequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3RequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraAccept?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreAccept?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Accept?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3Accept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageGenerateUltraResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageGenerateCoreResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3ResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3ResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageGenerateSd3ResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class GenerateSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -144,6 +106,10 @@ private GenerateSourceGenerationContext(global::System.Text.Json.JsonSerializerO public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -170,25 +136,21 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio?) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat?) + || typeToConvert == typeof(global::StabilityAI.StylePreset) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset) + || typeToConvert == typeof(global::StabilityAI.StylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset?) + || typeToConvert == typeof(global::StabilityAI.AspectRatio) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio) + || typeToConvert == typeof(global::StabilityAI.AspectRatio?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset?) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat?) || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat) @@ -210,10 +172,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraAccept) || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraAccept?) @@ -224,43 +182,7 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3Accept) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3Accept?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3?); + || typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3Accept?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -277,54 +199,44 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio?)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat?)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.StylePreset?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio)) + if (typeToConvert == typeof(global::StabilityAI.AspectRatio)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioJsonConverter(); + return new global::StabilityAI.JsonConverters.AspectRatioJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio?)) + if (typeToConvert == typeof(global::StabilityAI.AspectRatio?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.AspectRatioNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset?)) + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat?)) { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatNullableJsonConverter(); } if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat)) @@ -377,16 +289,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraAccept)) { return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraAcceptJsonConverter(); @@ -416,96 +318,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3AcceptNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCore.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCore.g.cs index 8e2e7b4..804178d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCore.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCore.g.cs @@ -121,7 +121,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( string contentType, global::StabilityAI.CreateStableImageGenerateCoreRequest request, @@ -216,7 +216,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageGenerateCoreAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageGenerateCoreAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateCoreRequest request, @@ -567,19 +567,19 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -588,7 +588,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -641,19 +641,19 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse5? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -662,7 +662,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -678,19 +678,19 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -699,7 +699,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -715,19 +715,19 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -736,7 +736,7 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -769,9 +769,9 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageGenerateCoreResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -801,9 +801,9 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageGenerateCoreResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -919,17 +919,17 @@ partial void ProcessCreateStableImageGenerateCoreResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( string contentType, string prompt, global::StabilityAI.CreateStableImageGenerateCoreAccept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, string? stabilityClientVersion = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, string? negativePrompt = default, double? seed = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? outputFormat = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs index d87eb5e..4332c5f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs @@ -567,19 +567,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -588,7 +588,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -641,19 +641,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse5? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -662,7 +662,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -678,19 +678,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -699,7 +699,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -715,19 +715,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -736,7 +736,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1219,19 +1219,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateCoreResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1240,7 +1240,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1293,19 +1293,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse5? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateCoreResponse5.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1314,7 +1314,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1330,19 +1330,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse6? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateCoreResponse6.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1351,7 +1351,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1367,19 +1367,19 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateCoreResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateCoreResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1388,7 +1388,7 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1570,10 +1570,10 @@ partial void ProcessCreateStableImageGenerateCoreAsBytesResponseContent( string? stabilityClientId = default, string? stabilityClientUserId = default, string? stabilityClientVersion = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, string? negativePrompt = default, double? seed = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? outputFormat = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3.g.cs index 15ea7e6..bd228e2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3.g.cs @@ -152,7 +152,7 @@ partial void ProcessCreateStableImageGenerateSd3ResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( string contentType, global::StabilityAI.CreateStableImageGenerateSd3Request request, @@ -278,7 +278,7 @@ partial void ProcessCreateStableImageGenerateSd3ResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageGenerateSd3AsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageGenerateSd3AsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateSd3Request request, @@ -383,7 +383,7 @@ partial void ProcessCreateStableImageGenerateSd3ResponseContent( var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.Prompt.ToString() ?? string.Empty), name: "\"prompt\""); if (request.Mode != default) @@ -488,7 +488,7 @@ request.Imagename is null { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.NegativePrompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.NegativePrompt.ToString() ?? string.Empty), name: "\"negative_prompt\""); } @@ -703,19 +703,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -724,7 +724,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -777,19 +777,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -798,7 +798,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -814,19 +814,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -835,7 +835,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -851,19 +851,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -872,7 +872,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -888,19 +888,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -909,7 +909,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -942,9 +942,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageGenerateSd3Response.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -974,9 +974,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageGenerateSd3Response.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1093,10 +1093,7 @@ request.Imagename is null /// The version of your application, used to help us communicate version-specific debugging or moderation issues to you.
/// Example: 1.2.1 /// - /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. - /// + /// /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
/// - **text-to-image** requires only the `prompt` parameter
@@ -1156,19 +1153,16 @@ request.Imagename is null /// /// Guides the image model towards a particular style. /// - /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. - /// + /// /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( string contentType, - string prompt, + global::StabilityAI.AllOf prompt, global::StabilityAI.CreateStableImageGenerateSd3Accept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, @@ -1181,8 +1175,8 @@ request.Imagename is null global::StabilityAI.CreateStableImageGenerateSd3RequestModel? model = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? stylePreset = default, - string? negativePrompt = default, + global::StabilityAI.StylePreset? stylePreset = default, + global::StabilityAI.AllOf? negativePrompt = default, double? cfgScale = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs index a362256..209ca15 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs @@ -383,7 +383,7 @@ partial void ProcessCreateStableImageGenerateSd3AsBytesResponseContent( var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.Prompt.ToString() ?? string.Empty), name: "\"prompt\""); if (request.Mode != default) @@ -488,7 +488,7 @@ request.Imagename is null { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.NegativePrompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.NegativePrompt.ToString() ?? string.Empty), name: "\"negative_prompt\""); } @@ -703,19 +703,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -724,7 +724,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -777,19 +777,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -798,7 +798,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -814,19 +814,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -835,7 +835,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -851,19 +851,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -872,7 +872,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -888,19 +888,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -909,7 +909,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1177,7 +1177,7 @@ request.Imagename is null var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.Prompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.Prompt.ToString() ?? string.Empty), name: "\"prompt\""); if (request.Mode != default) @@ -1282,7 +1282,7 @@ request.Imagename is null { __httpRequestContent.Add( - content: new global::System.Net.Http.StringContent(request.NegativePrompt ?? string.Empty), + content: new global::System.Net.Http.StringContent(request.NegativePrompt.ToString() ?? string.Empty), name: "\"negative_prompt\""); } @@ -1497,19 +1497,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateSd3Response4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1518,7 +1518,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1571,19 +1571,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateSd3Response5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1592,7 +1592,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1608,19 +1608,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateSd3Response6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1629,7 +1629,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1645,19 +1645,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateSd3Response7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1666,7 +1666,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1682,19 +1682,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateSd3Response8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateSd3Response8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1703,7 +1703,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1879,10 +1879,7 @@ request.Imagename is null /// The version of your application, used to help us communicate version-specific debugging or moderation issues to you.
/// Example: 1.2.1 /// - /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. - /// + /// /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
/// - **text-to-image** requires only the `prompt` parameter
@@ -1942,10 +1939,7 @@ request.Imagename is null /// /// Guides the image model towards a particular style. /// - /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. - /// + /// /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. /// @@ -1954,7 +1948,7 @@ request.Imagename is null /// public async global::System.Threading.Tasks.Task CreateStableImageGenerateSd3AsBytesAsync( string contentType, - string prompt, + global::StabilityAI.AllOf prompt, global::StabilityAI.CreateStableImageGenerateSd3Accept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, @@ -1967,8 +1961,8 @@ request.Imagename is null global::StabilityAI.CreateStableImageGenerateSd3RequestModel? model = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? stylePreset = default, - string? negativePrompt = default, + global::StabilityAI.StylePreset? stylePreset = default, + global::StabilityAI.AllOf? negativePrompt = default, double? cfgScale = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltra.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltra.g.cs index 2c531d2..be6b9a2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltra.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltra.g.cs @@ -125,7 +125,7 @@ partial void ProcessCreateStableImageGenerateUltraResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( string contentType, global::StabilityAI.CreateStableImageGenerateUltraRequest request, @@ -224,7 +224,7 @@ partial void ProcessCreateStableImageGenerateUltraResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageGenerateUltraAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageGenerateUltraAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateUltraRequest request, @@ -625,19 +625,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -646,7 +646,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -699,19 +699,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -720,7 +720,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -736,19 +736,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -757,7 +757,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -773,19 +773,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -794,7 +794,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -810,19 +810,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -831,7 +831,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -864,9 +864,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageGenerateUltraResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -896,9 +896,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageGenerateUltraResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1050,7 +1050,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( + public async global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( string contentType, string prompt, global::StabilityAI.CreateStableImageGenerateUltraAccept? accept = default, @@ -1058,12 +1058,12 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? outputFormat = default, byte[]? image = default, string? imagename = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, double? strength = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs index 7fd1172..839c199 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.GenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs @@ -625,19 +625,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -646,7 +646,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -699,19 +699,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -720,7 +720,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -736,19 +736,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -757,7 +757,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -773,19 +773,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -794,7 +794,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -810,19 +810,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -831,7 +831,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1368,19 +1368,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageGenerateUltraResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1389,7 +1389,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1442,19 +1442,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageGenerateUltraResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1463,7 +1463,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1479,19 +1479,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageGenerateUltraResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1500,7 +1500,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1516,19 +1516,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageGenerateUltraResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1537,7 +1537,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1553,19 +1553,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageGenerateUltraResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageGenerateUltraResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1574,7 +1574,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1793,12 +1793,12 @@ request.Imagename is null string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? outputFormat = default, byte[]? image = default, string? imagename = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, double? strength = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IAudioResultsClient.FetchAudioResult.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IAudioResultsClient.FetchAudioResult.g.cs index 267912f..01de0a3 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IAudioResultsClient.FetchAudioResult.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IAudioResultsClient.FetchAudioResult.g.cs @@ -49,7 +49,7 @@ public partial interface IAudioResultsClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task FetchAudioResultAsync( + global::System.Threading.Tasks.Task FetchAudioResultAsync( string id, global::StabilityAI.FetchAudioResultAccept? accept = default, string? stabilityClientId = default, @@ -102,7 +102,7 @@ public partial interface IAudioResultsClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> FetchAudioResultAsResponseAsync( + global::System.Threading.Tasks.Task> FetchAudioResultAsResponseAsync( string id, global::StabilityAI.FetchAudioResultAccept? accept = default, string? stabilityClientId = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketch.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketch.g.cs index ccbdf6b..8e0e75b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketch.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketch.g.cs @@ -80,7 +80,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, global::StabilityAI.CreateStableImageControlSketchRequest request, @@ -166,7 +166,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlSketchRequest request, @@ -279,7 +279,7 @@ public partial interface IControlClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, string prompt, byte[] image, @@ -292,7 +292,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -422,7 +422,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( + global::System.Threading.Tasks.Task CreateStableImageControlSketchAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -435,7 +435,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -564,7 +564,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlSketchAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -577,7 +577,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketchAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketchAsBytes.g.cs index 728346c..bfd6328 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketchAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlSketchAsBytes.g.cs @@ -378,7 +378,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -521,7 +521,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -663,7 +663,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -805,7 +805,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructure.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructure.g.cs index c026b08..4db3fb9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructure.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructure.g.cs @@ -79,7 +79,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, global::StabilityAI.CreateStableImageControlStructureRequest request, @@ -164,7 +164,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStructureRequest request, @@ -276,7 +276,7 @@ public partial interface IControlClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, string prompt, byte[] image, @@ -289,7 +289,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -418,7 +418,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStructureAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -431,7 +431,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -559,7 +559,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStructureAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -572,7 +572,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructureAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructureAsBytes.g.cs index a153405..0e10657 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructureAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStructureAsBytes.g.cs @@ -374,7 +374,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -516,7 +516,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -657,7 +657,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -798,7 +798,7 @@ public partial interface IControlClient string? negativePrompt = default, double? seed = default, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyle.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyle.g.cs index 19fbed1..7220d43 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyle.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyle.g.cs @@ -77,7 +77,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleRequest request, @@ -160,7 +160,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleRequest request, @@ -275,7 +275,7 @@ public partial interface IControlClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, string prompt, byte[] image, @@ -285,11 +285,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -420,7 +420,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -430,11 +430,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -564,7 +564,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStyleAsResponseAsync( string contentType, string prompt, global::System.IO.Stream image, @@ -574,11 +574,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleAsBytes.g.cs index e5f73d5..d1ad4e3 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleAsBytes.g.cs @@ -368,11 +368,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -513,11 +513,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -657,11 +657,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -801,11 +801,11 @@ public partial interface IControlClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? fidelity = default, double? seed = default, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleTransfer.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleTransfer.g.cs index c4156f3..a0f83b4 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleTransfer.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IControlClient.CreateStableImageControlStyleTransfer.g.cs @@ -83,7 +83,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleTransferRequest request, @@ -172,7 +172,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageControlStyleTransferRequest request, @@ -322,7 +322,7 @@ public partial interface IControlClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, byte[] initImage, string initImagename, @@ -504,7 +504,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( + global::System.Threading.Tasks.Task CreateStableImageControlStyleTransferAsync( string contentType, global::System.IO.Stream initImage, string initImagename, @@ -685,7 +685,7 @@ public partial interface IControlClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageControlStyleTransferAsResponseAsync( string contentType, global::System.IO.Stream initImage, string initImagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditErase.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditErase.g.cs index 04cca7b..63c755a 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditErase.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditErase.g.cs @@ -76,7 +76,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, global::StabilityAI.CreateStableImageEditEraseRequest request, @@ -158,7 +158,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditEraseRequest request, @@ -283,7 +283,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, byte[] image, string imagename, @@ -436,7 +436,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( + global::System.Threading.Tasks.Task CreateStableImageEditEraseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -588,7 +588,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditEraseAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaint.g.cs index 52ee640..d532595 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaint.g.cs @@ -81,7 +81,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, global::StabilityAI.CreateStableImageEditInpaintRequest request, @@ -168,7 +168,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditInpaintRequest request, @@ -312,7 +312,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, byte[] image, string imagename, @@ -327,7 +327,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -488,7 +488,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditInpaintAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -503,7 +503,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -663,7 +663,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditInpaintAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -678,7 +678,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaintAsBytes.g.cs index 6abbeff..ab67a92 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditInpaintAsBytes.g.cs @@ -414,7 +414,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -590,7 +590,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -765,7 +765,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -940,7 +940,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaint.g.cs index 2fc552e..9d6a98a 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaint.g.cs @@ -83,7 +83,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, global::StabilityAI.CreateStableImageEditOutpaintRequest request, @@ -172,7 +172,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditOutpaintRequest request, @@ -297,7 +297,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, byte[] image, string imagename, @@ -313,7 +313,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -455,7 +455,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( + global::System.Threading.Tasks.Task CreateStableImageEditOutpaintAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -471,7 +471,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -612,7 +612,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditOutpaintAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -628,7 +628,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaintAsBytes.g.cs index dd5674f..6748478 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditOutpaintAsBytes.g.cs @@ -402,7 +402,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -560,7 +560,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -717,7 +717,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -874,7 +874,7 @@ public partial interface IEditClient string? prompt = default, double? seed = default, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditRemoveBackground.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditRemoveBackground.g.cs index ecaf326..07031d7 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditRemoveBackground.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditRemoveBackground.g.cs @@ -70,7 +70,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest request, @@ -146,7 +146,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest request, @@ -226,7 +226,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, byte[] image, string imagename, @@ -329,7 +329,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( + global::System.Threading.Tasks.Task CreateStableImageEditRemoveBackgroundAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -431,7 +431,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditRemoveBackgroundAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs index 79f7780..8b1eb53 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditReplaceBackgroundAndRelight.g.cs @@ -81,7 +81,7 @@ public partial interface IEditClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest request, @@ -167,7 +167,7 @@ public partial interface IEditClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest request, @@ -355,7 +355,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, byte[] subjectImage, string subjectImagename, @@ -576,7 +576,7 @@ public partial interface IEditClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( + global::System.Threading.Tasks.Task CreateStableImageEditReplaceBackgroundAndRelightAsync( string contentType, global::System.IO.Stream subjectImage, string subjectImagename, @@ -796,7 +796,7 @@ public partial interface IEditClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditReplaceBackgroundAndRelightAsResponseAsync( string contentType, global::System.IO.Stream subjectImage, string subjectImagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolor.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolor.g.cs index 52c0665..3d5d1c2 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolor.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolor.g.cs @@ -80,7 +80,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest request, @@ -166,7 +166,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest request, @@ -285,7 +285,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, byte[] image, string imagename, @@ -299,7 +299,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -435,7 +435,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndRecolorAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -449,7 +449,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -584,7 +584,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndRecolorAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -598,7 +598,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs index f04e758..6425e27 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndRecolorAsBytes.g.cs @@ -385,7 +385,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -535,7 +535,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -684,7 +684,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -833,7 +833,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplace.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplace.g.cs index 04aef98..b566bae 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplace.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplace.g.cs @@ -79,7 +79,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest request, @@ -164,7 +164,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest request, @@ -282,7 +282,7 @@ public partial interface IEditClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, byte[] image, string imagename, @@ -296,7 +296,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -431,7 +431,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( + global::System.Threading.Tasks.Task CreateStableImageEditSearchAndReplaceAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -445,7 +445,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -579,7 +579,7 @@ public partial interface IEditClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageEditSearchAndReplaceAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -593,7 +593,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs index 28abc4f..1b0ba93 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IEditClient.CreateStableImageEditSearchAndReplaceAsBytes.g.cs @@ -381,7 +381,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -530,7 +530,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -678,7 +678,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -826,7 +826,7 @@ public partial interface IEditClient double? growMask = default, double? seed = default, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCore.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCore.g.cs index 07b7244..debdd73 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCore.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCore.g.cs @@ -74,7 +74,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( + global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( string contentType, global::StabilityAI.CreateStableImageGenerateCoreRequest request, @@ -154,7 +154,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageGenerateCoreAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageGenerateCoreAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateCoreRequest request, @@ -240,17 +240,17 @@ public partial interface IGenerateClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( + global::System.Threading.Tasks.Task CreateStableImageGenerateCoreAsync( string contentType, string prompt, global::StabilityAI.CreateStableImageGenerateCoreAccept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, string? stabilityClientVersion = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, string? negativePrompt = default, double? seed = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? outputFormat = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs index d4d3f57..84b7626 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateCoreAsBytes.g.cs @@ -327,10 +327,10 @@ public partial interface IGenerateClient string? stabilityClientId = default, string? stabilityClientUserId = default, string? stabilityClientVersion = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, string? negativePrompt = default, double? seed = default, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? outputFormat = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3.g.cs index 462d13d..d00417b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3.g.cs @@ -105,7 +105,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( + global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( string contentType, global::StabilityAI.CreateStableImageGenerateSd3Request request, @@ -216,7 +216,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageGenerateSd3AsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageGenerateSd3AsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateSd3Request request, @@ -303,10 +303,7 @@ public partial interface IGenerateClient /// The version of your application, used to help us communicate version-specific debugging or moderation issues to you.
/// Example: 1.2.1 /// - /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. - /// + /// /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
/// - **text-to-image** requires only the `prompt` parameter
@@ -366,19 +363,16 @@ public partial interface IGenerateClient /// /// Guides the image model towards a particular style. /// - /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. - /// + /// /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( + global::System.Threading.Tasks.Task CreateStableImageGenerateSd3Async( string contentType, - string prompt, + global::StabilityAI.AllOf prompt, global::StabilityAI.CreateStableImageGenerateSd3Accept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, @@ -391,8 +385,8 @@ public partial interface IGenerateClient global::StabilityAI.CreateStableImageGenerateSd3RequestModel? model = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? stylePreset = default, - string? negativePrompt = default, + global::StabilityAI.StylePreset? stylePreset = default, + global::StabilityAI.AllOf? negativePrompt = default, double? cfgScale = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs index 1ae617a..8fc30ca 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateSd3AsBytes.g.cs @@ -414,10 +414,7 @@ public partial interface IGenerateClient /// The version of your application, used to help us communicate version-specific debugging or moderation issues to you.
/// Example: 1.2.1 /// - /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. - /// + /// /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
/// - **text-to-image** requires only the `prompt` parameter
@@ -477,10 +474,7 @@ public partial interface IGenerateClient /// /// Guides the image model towards a particular style. /// - /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. - /// + /// /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. /// @@ -489,7 +483,7 @@ public partial interface IGenerateClient /// global::System.Threading.Tasks.Task CreateStableImageGenerateSd3AsBytesAsync( string contentType, - string prompt, + global::StabilityAI.AllOf prompt, global::StabilityAI.CreateStableImageGenerateSd3Accept? accept = default, string? stabilityClientId = default, string? stabilityClientUserId = default, @@ -502,8 +496,8 @@ public partial interface IGenerateClient global::StabilityAI.CreateStableImageGenerateSd3RequestModel? model = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? outputFormat = default, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? stylePreset = default, - string? negativePrompt = default, + global::StabilityAI.StylePreset? stylePreset = default, + global::StabilityAI.AllOf? negativePrompt = default, double? cfgScale = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltra.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltra.g.cs index 64c2004..9d170be 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltra.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltra.g.cs @@ -78,7 +78,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( + global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( string contentType, global::StabilityAI.CreateStableImageGenerateUltraRequest request, @@ -162,7 +162,7 @@ public partial interface IGenerateClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageGenerateUltraAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageGenerateUltraAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageGenerateUltraRequest request, @@ -284,7 +284,7 @@ public partial interface IGenerateClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( + global::System.Threading.Tasks.Task CreateStableImageGenerateUltraAsync( string contentType, string prompt, global::StabilityAI.CreateStableImageGenerateUltraAccept? accept = default, @@ -292,12 +292,12 @@ public partial interface IGenerateClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? outputFormat = default, byte[]? image = default, string? imagename = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, double? strength = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs index b4c75b4..0ea6283 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IGenerateClient.CreateStableImageGenerateUltraAsBytes.g.cs @@ -376,12 +376,12 @@ public partial interface IGenerateClient string? stabilityClientUserId = default, string? stabilityClientVersion = default, string? negativePrompt = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? aspectRatio = default, + global::StabilityAI.AspectRatio? aspectRatio = default, double? seed = default, global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? outputFormat = default, byte[]? image = default, string? imagename = default, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, double? strength = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IResultsClient.GetResultsById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IResultsClient.GetResultsById.g.cs index 0d430aa..727cc57 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IResultsClient.GetResultsById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IResultsClient.GetResultsById.g.cs @@ -62,7 +62,7 @@ public partial interface IResultsClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task GetResultsByIdAsync( + global::System.Threading.Tasks.Task GetResultsByIdAsync( string id, global::StabilityAI.GetResultsAccept? accept = default, string? stabilityClientId = default, @@ -128,7 +128,7 @@ public partial interface IResultsClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> GetResultsByIdAsResponseAsync( + global::System.Threading.Tasks.Task> GetResultsByIdAsResponseAsync( string id, global::StabilityAI.GetResultsAccept? accept = default, string? stabilityClientId = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs index a149a6d..fc6a60f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs @@ -62,7 +62,7 @@ public partial interface IStabilityAIClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task GetStableImageUpscaleCreativeResultByIdAsync( + global::System.Threading.Tasks.Task GetStableImageUpscaleCreativeResultByIdAsync( string id, global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? accept = default, string? stabilityClientId = default, @@ -128,7 +128,7 @@ public partial interface IStabilityAIClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> GetStableImageUpscaleCreativeResultByIdAsResponseAsync( + global::System.Threading.Tasks.Task> GetStableImageUpscaleCreativeResultByIdAsResponseAsync( string id, global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? accept = default, string? stabilityClientId = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs index e68a29e..8df3330 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs @@ -93,7 +93,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest request, @@ -192,7 +192,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest request, @@ -330,7 +330,7 @@ public partial interface IStableAudio2Client /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, string prompt, byte[] audio, @@ -498,7 +498,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -665,7 +665,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs index 3466ded..fc3caca 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs @@ -81,7 +81,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2InpaintRequest request, @@ -168,7 +168,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2InpaintRequest request, @@ -280,7 +280,7 @@ public partial interface IStableAudio2Client /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, string prompt, byte[] audio, @@ -420,7 +420,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -559,7 +559,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs index 3e4cdc1..2440beb 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs @@ -86,7 +86,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest request, @@ -178,7 +178,7 @@ public partial interface IStableAudio2Client /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudio2TextToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudio2TextToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest request, @@ -285,7 +285,7 @@ public partial interface IStableAudio2Client /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( string contentType, string prompt, global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept? accept = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs index 52dad90..6b677ea 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs @@ -79,7 +79,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest request, @@ -164,7 +164,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest request, @@ -273,7 +273,7 @@ public partial interface IStableAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, string prompt, byte[] audio, @@ -422,7 +422,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -570,7 +570,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioInpaint.g.cs index 2025cba..e4baa0e 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioInpaint.g.cs @@ -78,7 +78,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, global::StabilityAI.CreateAudioStableAudioInpaintRequest request, @@ -162,7 +162,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioInpaintRequest request, @@ -268,7 +268,7 @@ public partial interface IStableAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, string prompt, byte[] audio, @@ -416,7 +416,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -563,7 +563,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioTextToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioTextToAudio.g.cs index 3fd1208..7b5aace 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioTextToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IStableAudioClient.CreateAudioStableAudioTextToAudio.g.cs @@ -73,7 +73,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudioTextToAudioRequest request, @@ -152,7 +152,7 @@ public partial interface IStableAudioClient /// else:
/// raise Exception(str(result.json())) /// - global::System.Threading.Tasks.Task> CreateAudioStableAudioTextToAudioAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAudioStableAudioTextToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioTextToAudioRequest request, @@ -231,7 +231,7 @@ public partial interface IStableAudioClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( + global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( string contentType, string prompt, global::StabilityAI.CreateAudioStableAudioTextToAudioAccept? accept = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleConservative.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleConservative.g.cs index 7ba539f..45e0990 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleConservative.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleConservative.g.cs @@ -75,7 +75,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleConservativeRequest request, @@ -156,7 +156,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleConservativeRequest request, @@ -262,7 +262,7 @@ public partial interface IUpscaleClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, byte[] image, string imagename, @@ -396,7 +396,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -529,7 +529,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleCreative.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleCreative.g.cs index 0bf6c40..2877fcd 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleCreative.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleCreative.g.cs @@ -263,7 +263,7 @@ public partial interface IUpscaleClient global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -394,7 +394,7 @@ public partial interface IUpscaleClient global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -524,7 +524,7 @@ public partial interface IUpscaleClient global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleFast.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleFast.g.cs index 9c1466c..0c7a9c0 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleFast.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IUpscaleClient.CreateStableImageUpscaleFast.g.cs @@ -70,7 +70,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleFastRequest request, @@ -146,7 +146,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleFastRequest request, @@ -228,7 +228,7 @@ public partial interface IUpscaleClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, byte[] image, string imagename, @@ -333,7 +333,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -437,7 +437,7 @@ public partial interface IUpscaleClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( + global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs index bcd645c..548d072 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImage.g.cs @@ -164,9 +164,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -190,7 +189,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -265,9 +264,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -313,7 +311,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -387,9 +385,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -435,7 +432,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImageAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImageAsBytes.g.cs index e98d9c7..4d50ba5 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImageAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.ImageToImageAsBytes.g.cs @@ -209,9 +209,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -235,7 +234,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -310,9 +309,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -358,7 +356,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -432,9 +430,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -480,7 +477,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -554,9 +551,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -602,7 +598,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs index f35906c..860c192 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.Masking.g.cs @@ -156,9 +156,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -181,7 +180,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -248,9 +247,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -297,7 +295,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -363,9 +361,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -412,7 +409,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.MaskingAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.MaskingAsBytes.g.cs index 3aa523e..00effe6 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.MaskingAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV1GenerationClient.MaskingAsBytes.g.cs @@ -201,9 +201,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -226,7 +225,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -293,9 +292,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -342,7 +340,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -408,9 +406,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -457,7 +454,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -523,9 +520,8 @@ public partial interface IV1GenerationClient /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -572,7 +568,7 @@ public partial interface IV1GenerationClient global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs index 89a8a18..8c4f0ad 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs @@ -60,7 +60,7 @@ public partial interface IV2alphaGenerationClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( + global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest request, @@ -123,7 +123,7 @@ public partial interface IV2alphaGenerationClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageInpaintAsResponseAsync( + global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest request, @@ -162,7 +162,7 @@ public partial interface IV2alphaGenerationClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( + global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs index 51445f3..4f5b978 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs @@ -40,7 +40,7 @@ public partial interface IV2alphaGenerationClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest request, @@ -82,7 +82,7 @@ public partial interface IV2alphaGenerationClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( + global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest request, @@ -156,7 +156,7 @@ public partial interface IV2alphaGenerationClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, byte[] image, string imagename, @@ -165,7 +165,7 @@ public partial interface IV2alphaGenerationClient global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -254,7 +254,7 @@ public partial interface IV2alphaGenerationClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -263,7 +263,7 @@ public partial interface IV2alphaGenerationClient global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -351,7 +351,7 @@ public partial interface IV2alphaGenerationClient /// )
/// print("Generation ID:", response.json().get('id')) /// - global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( + global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -360,7 +360,7 @@ public partial interface IV2alphaGenerationClient global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs index dfcec2e..c8d08f5 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.IV2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs @@ -45,7 +45,7 @@ public partial interface IV2alphaGenerationClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task GetV2alphaGenerationStableImageUpscaleResultByIdAsync( + global::System.Threading.Tasks.Task GetV2alphaGenerationStableImageUpscaleResultByIdAsync( string id, global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, @@ -91,7 +91,7 @@ public partial interface IV2alphaGenerationClient /// else:
/// raise Exception(str(response.json())) /// - global::System.Threading.Tasks.Task> GetV2alphaGenerationStableImageUpscaleResultByIdAsResponseAsync( + global::System.Threading.Tasks.Task> GetV2alphaGenerationStableImageUpscaleResultByIdAsResponseAsync( string id, global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatio.g.cs similarity index 64% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatio.g.cs index bc2eeeb..e516fce 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatio.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason Read( + public override global::StabilityAI.AspectRatio 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 GetResultsResponseFinishReasonJsonConverter : global::System var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; + return global::StabilityAI.AspectRatioExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReasonJsonConverter : global::System case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason)numValue; + return (global::StabilityAI.AspectRatio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason); + return default(global::StabilityAI.AspectRatio); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetResultsResponseFinishReasonJsonConverter : global::System /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason value, + global::StabilityAI.AspectRatio value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReasonExtensions.ToValueString(value)); + writer.WriteStringValue(global::StabilityAI.AspectRatioExtensions.ToValueString(value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatioNullable.g.cs similarity index 66% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReasonNullable.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatioNullable.g.cs index 47ced6a..cc65914 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReasonNullable.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AspectRatioNullable.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason? Read( + public override global::StabilityAI.AspectRatio? 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 GetResultsResponseFinishReasonNullableJsonConverter : global var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReasonExtensions.ToEnum(stringValue); + return global::StabilityAI.AspectRatioExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReasonNullableJsonConverter : global case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason)numValue; + return (global::StabilityAI.AspectRatio)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason?); + return default(global::StabilityAI.AspectRatio?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetResultsResponseFinishReasonNullableJsonConverter : global /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason? value, + global::StabilityAI.AspectRatio? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReasonExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::StabilityAI.AspectRatioExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReason.g.cs similarity index 64% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReason.g.cs index c5c263c..1c8a8fd 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReason.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AudioJSONResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason3 Read( + public override global::StabilityAI.AudioJSONResponseFinishReason 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 GetResultsResponseFinishReason3JsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; + return global::StabilityAI.AudioJSONResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReason3JsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason3)numValue; + return (global::StabilityAI.AudioJSONResponseFinishReason)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason3); + return default(global::StabilityAI.AudioJSONResponseFinishReason); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetResultsResponseFinishReason3JsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason3 value, + global::StabilityAI.AudioJSONResponseFinishReason value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReason3Extensions.ToValueString(value)); + writer.WriteStringValue(global::StabilityAI.AudioJSONResponseFinishReasonExtensions.ToValueString(value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullable.g.cs similarity index 66% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2Nullable.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullable.g.cs index 15bccaa..0fdd7d6 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2Nullable.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullable.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class AudioJSONResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason2? Read( + public override global::StabilityAI.AudioJSONResponseFinishReason? 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 GetResultsResponseFinishReason2NullableJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReason2Extensions.ToEnum(stringValue); + return global::StabilityAI.AudioJSONResponseFinishReasonExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReason2NullableJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason2)numValue; + return (global::StabilityAI.AudioJSONResponseFinishReason)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason2?); + return default(global::StabilityAI.AudioJSONResponseFinishReason?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetResultsResponseFinishReason2NullableJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason2? value, + global::StabilityAI.AudioJSONResponseFinishReason? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReason2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::StabilityAI.AudioJSONResponseFinishReasonExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs deleted file mode 100644 index aa25f53..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2AudioToAudioResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs deleted file mode 100644 index d207bf8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2AudioToAudioResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Nullable.g.cs deleted file mode 100644 index a41681b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2AudioToAudioResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullable.g.cs deleted file mode 100644 index 2fa13c6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs deleted file mode 100644 index d562b2e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2InpaintResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs deleted file mode 100644 index bdf0e71..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2InpaintResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 73f1cf8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2InpaintResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonNullable.g.cs deleted file mode 100644 index fe1a5bc..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2InpaintResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs deleted file mode 100644 index 4a64030..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2TextToAudioResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs deleted file mode 100644 index c301266..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2TextToAudioResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 055548a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2TextToAudioResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonNullable.g.cs deleted file mode 100644 index c9c5871..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateAudioStableAudio2TextToAudioResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePreset.g.cs deleted file mode 100644 index 601541d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetNullable.g.cs deleted file mode 100644 index f38d4bd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason.g.cs deleted file mode 100644 index 5094259..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2.g.cs deleted file mode 100644 index de2cb72..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 00fcce8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3.g.cs deleted file mode 100644 index 8d2cd11..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3Nullable.g.cs deleted file mode 100644 index a1d9cec..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonNullable.g.cs deleted file mode 100644 index 3d75419..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlSketchResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlSketchResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlSketchResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlSketchResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlSketchResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePreset.g.cs deleted file mode 100644 index 9125cbe..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetNullable.g.cs deleted file mode 100644 index 4d8c26f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason.g.cs deleted file mode 100644 index 55f0a29..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2.g.cs deleted file mode 100644 index 1e238e8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 83f5d8b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3.g.cs deleted file mode 100644 index decbe60..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 7b3f2e8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonNullable.g.cs deleted file mode 100644 index 7c53af8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStructureResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStructureResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStructureResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStructureResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStructureResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatio.g.cs deleted file mode 100644 index fab765f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatio.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleRequestAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleRequestAspectRatioExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatioExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioNullable.g.cs deleted file mode 100644 index 8fb7305..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleRequestAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleRequestAspectRatioExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatioExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePreset.g.cs deleted file mode 100644 index 3453d56..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetNullable.g.cs deleted file mode 100644 index 4c598cc..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason.g.cs deleted file mode 100644 index 1365e96..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2.g.cs deleted file mode 100644 index b730765..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2Nullable.g.cs deleted file mode 100644 index e3fa60b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3.g.cs deleted file mode 100644 index 8e32e20..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3Nullable.g.cs deleted file mode 100644 index b1f052b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonNullable.g.cs deleted file mode 100644 index 894b087..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason.g.cs deleted file mode 100644 index 256cf18..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs deleted file mode 100644 index 41a34d2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 3b795e0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs deleted file mode 100644 index 8dbc36e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 0d14a70..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonNullable.g.cs deleted file mode 100644 index 1d4a848..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageControlStyleTransferResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason.g.cs deleted file mode 100644 index 30860a2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2.g.cs deleted file mode 100644 index 067854f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 2c4cdc7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3.g.cs deleted file mode 100644 index fd5a7dd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 1f38f1b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonNullable.g.cs deleted file mode 100644 index 49597ad..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditEraseResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditEraseResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditEraseResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditEraseResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditEraseResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePreset.g.cs deleted file mode 100644 index e75b555..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetNullable.g.cs deleted file mode 100644 index f2a4ff1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason.g.cs deleted file mode 100644 index d494de0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2.g.cs deleted file mode 100644 index 6f610f7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 0817253..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3.g.cs deleted file mode 100644 index f9ba0f4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 5f504f5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonNullable.g.cs deleted file mode 100644 index 68a8816..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditInpaintResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditInpaintResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePreset.g.cs deleted file mode 100644 index 94e40b8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetNullable.g.cs deleted file mode 100644 index c0b53ed..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason.g.cs deleted file mode 100644 index cef5985..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2.g.cs deleted file mode 100644 index d51eb6c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 725513f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3.g.cs deleted file mode 100644 index c7e5f52..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3Nullable.g.cs deleted file mode 100644 index d48313c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonNullable.g.cs deleted file mode 100644 index ee9a73e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditOutpaintResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs deleted file mode 100644 index fcaeb76..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditRemoveBackgroundResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs deleted file mode 100644 index b8aae76..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditRemoveBackgroundResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 7bf080f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditRemoveBackgroundResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonNullable.g.cs deleted file mode 100644 index 959c2f4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditRemoveBackgroundResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs deleted file mode 100644 index de44bf0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetNullable.g.cs deleted file mode 100644 index a0c4a23..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs deleted file mode 100644 index d3cd07a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs deleted file mode 100644 index 0c6a35f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 6e970b5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs deleted file mode 100644 index 17e7926..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3Nullable.g.cs deleted file mode 100644 index d725e16..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonNullable.g.cs deleted file mode 100644 index 40848d3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndRecolorResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs deleted file mode 100644 index 44ade71..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetNullable.g.cs deleted file mode 100644 index 7c2dd6d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs deleted file mode 100644 index 6deb2c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs deleted file mode 100644 index 82d19af..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2Nullable.g.cs deleted file mode 100644 index e8aba7c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs deleted file mode 100644 index a5613a7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3Nullable.g.cs deleted file mode 100644 index d2575af..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonNullable.g.cs deleted file mode 100644 index e6ffe1e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageEditSearchAndReplaceResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatio.g.cs deleted file mode 100644 index b47f04f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatio.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreRequestAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatioExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatioExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioNullable.g.cs deleted file mode 100644 index 441ee0b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreRequestAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatioExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatioExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePreset.g.cs deleted file mode 100644 index c3a870e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetNullable.g.cs deleted file mode 100644 index 8f9156d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason.g.cs deleted file mode 100644 index 37d435a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2.g.cs deleted file mode 100644 index fb8d40d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2Nullable.g.cs deleted file mode 100644 index a2824a2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3.g.cs deleted file mode 100644 index 3380ef0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 4072253..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonNullable.g.cs deleted file mode 100644 index 21c464c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateCoreResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePreset.g.cs deleted file mode 100644 index df8c589..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3RequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3RequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetNullable.g.cs deleted file mode 100644 index 689e37e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3RequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3RequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason.g.cs deleted file mode 100644 index a164c54..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs deleted file mode 100644 index fa5159b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 8ed8857..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs deleted file mode 100644 index 52d353f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 55a8ff5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonNullable.g.cs deleted file mode 100644 index 301ea14..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateSd3ResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatio.g.cs deleted file mode 100644 index 84a4431..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatio.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraRequestAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatioExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatioExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioNullable.g.cs deleted file mode 100644 index 2561d5c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraRequestAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatioExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatioExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePreset.g.cs deleted file mode 100644 index 59495b0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetNullable.g.cs deleted file mode 100644 index 496727c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason.g.cs deleted file mode 100644 index c2df2f6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2.g.cs deleted file mode 100644 index fc9be5d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2Nullable.g.cs deleted file mode 100644 index b505eec..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3.g.cs deleted file mode 100644 index 5e217e9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3Nullable.g.cs deleted file mode 100644 index db4bedd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonNullable.g.cs deleted file mode 100644 index f54f827..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageGenerateUltraResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs deleted file mode 100644 index 4db9cb8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs deleted file mode 100644 index 26721a1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2Nullable.g.cs deleted file mode 100644 index c1c9753..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs deleted file mode 100644 index 2681a20..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 4362e56..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonNullable.g.cs deleted file mode 100644 index 7111834..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleConservativeResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs deleted file mode 100644 index c288f77..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleCreativeRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetNullable.g.cs deleted file mode 100644 index 76784e3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleCreativeRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason.g.cs deleted file mode 100644 index 0e8a95a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2.g.cs deleted file mode 100644 index ce0596d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2Nullable.g.cs deleted file mode 100644 index ac51024..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3.g.cs deleted file mode 100644 index 4a77892..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3Nullable.g.cs deleted file mode 100644 index b205696..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonNullable.g.cs deleted file mode 100644 index 778df39..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateStableImageUpscaleFastResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs deleted file mode 100644 index 036c9ee..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs deleted file mode 100644 index 931905f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 3439170..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs deleted file mode 100644 index aee87f2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 6d8d76b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullable.g.cs deleted file mode 100644 index fa89fc2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs deleted file mode 100644 index 5734a63..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageUpscaleRequestStylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullable.g.cs deleted file mode 100644 index 6aaefdb..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2.g.cs deleted file mode 100644 index d481d4d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class FetchAudioResultResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.FetchAudioResultResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.FetchAudioResultResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.FetchAudioResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.FetchAudioResultResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.FetchAudioResultResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.FetchAudioResultResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 817f3aa..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class FetchAudioResultResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.FetchAudioResultResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.FetchAudioResultResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.FetchAudioResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.FetchAudioResultResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.FetchAudioResultResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.FetchAudioResultResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs deleted file mode 100644 index ce2f4cd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs deleted file mode 100644 index a4dc0e1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 549802a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs deleted file mode 100644 index 3971173..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3Nullable.g.cs deleted file mode 100644 index 835ef94..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonNullable.g.cs deleted file mode 100644 index bfb5cfd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetStableImageUpscaleCreativeResultResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs deleted file mode 100644 index da828ad..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs deleted file mode 100644 index 65345b5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Nullable.g.cs deleted file mode 100644 index 89444a5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs deleted file mode 100644 index ab2d3fe..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Extensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Extensions.ToValueString(value)); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Nullable.g.cs deleted file mode 100644 index b859b79..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Nullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Extensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Extensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullable.g.cs deleted file mode 100644 index 074e31c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace StabilityAI.JsonConverters -{ - /// - public sealed class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReason.g.cs similarity index 64% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReason.g.cs index be6d0ec..c166e33 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason2.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReason.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReason2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ImageJSONResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason2 Read( + public override global::StabilityAI.ImageJSONResponseFinishReason 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 GetResultsResponseFinishReason2JsonConverter : global::Syste var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReason2Extensions.ToEnum(stringValue) ?? default; + return global::StabilityAI.ImageJSONResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReason2JsonConverter : global::Syste case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason2)numValue; + return (global::StabilityAI.ImageJSONResponseFinishReason)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason2); + return default(global::StabilityAI.ImageJSONResponseFinishReason); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class GetResultsResponseFinishReason2JsonConverter : global::Syste /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason2 value, + global::StabilityAI.ImageJSONResponseFinishReason value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReason2Extensions.ToValueString(value)); + writer.WriteStringValue(global::StabilityAI.ImageJSONResponseFinishReasonExtensions.ToValueString(value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3Nullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullable.g.cs similarity index 66% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3Nullable.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullable.g.cs index df3f70e..1540586 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.GetResultsResponseFinishReason3Nullable.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullable.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class GetResultsResponseFinishReason3NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ImageJSONResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.GetResultsResponseFinishReason3? Read( + public override global::StabilityAI.ImageJSONResponseFinishReason? 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 GetResultsResponseFinishReason3NullableJsonConverter : globa var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.GetResultsResponseFinishReason3Extensions.ToEnum(stringValue); + return global::StabilityAI.ImageJSONResponseFinishReasonExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class GetResultsResponseFinishReason3NullableJsonConverter : globa case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.GetResultsResponseFinishReason3)numValue; + return (global::StabilityAI.ImageJSONResponseFinishReason)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.GetResultsResponseFinishReason3?); + return default(global::StabilityAI.ImageJSONResponseFinishReason?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class GetResultsResponseFinishReason3NullableJsonConverter : globa /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.GetResultsResponseFinishReason3? value, + global::StabilityAI.ImageJSONResponseFinishReason? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::StabilityAI.GetResultsResponseFinishReason3Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::StabilityAI.ImageJSONResponseFinishReasonExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePreset.g.cs similarity index 63% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePreset.g.cs index bb90039..5db7a57 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePreset.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class FetchAudioResultResponseFinishReasonJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StylePresetJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.FetchAudioResultResponseFinishReason Read( + public override global::StabilityAI.StylePreset 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 FetchAudioResultResponseFinishReasonJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.FetchAudioResultResponseFinishReasonExtensions.ToEnum(stringValue) ?? default; + return global::StabilityAI.StylePresetExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class FetchAudioResultResponseFinishReasonJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.FetchAudioResultResponseFinishReason)numValue; + return (global::StabilityAI.StylePreset)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.FetchAudioResultResponseFinishReason); + return default(global::StabilityAI.StylePreset); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class FetchAudioResultResponseFinishReasonJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.FetchAudioResultResponseFinishReason value, + global::StabilityAI.StylePreset value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::StabilityAI.FetchAudioResultResponseFinishReasonExtensions.ToValueString(value)); + writer.WriteStringValue(global::StabilityAI.StylePresetExtensions.ToValueString(value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullable.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePresetNullable.g.cs similarity index 65% rename from src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullable.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePresetNullable.g.cs index 296a0d5..3a01c69 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullable.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonConverters.StylePresetNullable.g.cs @@ -3,10 +3,10 @@ namespace StabilityAI.JsonConverters { /// - public sealed class FetchAudioResultResponseFinishReasonNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class StylePresetNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::StabilityAI.FetchAudioResultResponseFinishReason? Read( + public override global::StabilityAI.StylePreset? 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 FetchAudioResultResponseFinishReasonNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::StabilityAI.FetchAudioResultResponseFinishReasonExtensions.ToEnum(stringValue); + return global::StabilityAI.StylePresetExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class FetchAudioResultResponseFinishReasonNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::StabilityAI.FetchAudioResultResponseFinishReason)numValue; + return (global::StabilityAI.StylePreset)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::StabilityAI.FetchAudioResultResponseFinishReason?); + return default(global::StabilityAI.StylePreset?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class FetchAudioResultResponseFinishReasonNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::StabilityAI.FetchAudioResultResponseFinishReason? value, + global::StabilityAI.StylePreset? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::StabilityAI.FetchAudioResultResponseFinishReasonExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::StabilityAI.StylePresetExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContext.g.cs index 493048a..1039dfe 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContext.g.cs @@ -49,6 +49,18 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter), + typeof(global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter), + + typeof(global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter), + + typeof(global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonJsonConverter), + + typeof(global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullableJsonConverter), + + typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter), + + typeof(global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter), + typeof(global::StabilityAI.JsonConverters.InpaintingSearchModeRequestBodyModeJsonConverter), typeof(global::StabilityAI.JsonConverters.InpaintingSearchModeRequestBodyModeNullableJsonConverter), @@ -65,13 +77,13 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.InpaintingMaskingModeRequestBodyOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormatJsonConverter), + typeof(global::StabilityAI.JsonConverters.AspectRatioJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormatNullableJsonConverter), + typeof(global::StabilityAI.JsonConverters.AspectRatioNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetJsonConverter), + typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormatJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullableJsonConverter), + typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormatNullableJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorModeJsonConverter), @@ -149,10 +161,6 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastRequestOutputFormatNullableJsonConverter), @@ -165,34 +173,18 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundRequestOutputFormatNullableJsonConverter), @@ -209,26 +201,10 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.CreateStableImageEditReplaceBackgroundAndRelightRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestOutputFormatNullableJsonConverter), @@ -249,38 +225,18 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestOutputFormatNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferRequestOutputFormatJsonConverter), typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferRequestOutputFormatNullableJsonConverter), @@ -405,278 +361,22 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferAcceptNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3NullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusJsonConverter), typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason3NullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.GetResultsResponseStatusJsonConverter), typeof(global::StabilityAI.JsonConverters.GetResultsResponseStatusNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2NullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseStatusJsonConverter), typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseStatusNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3NullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseStatusJsonConverter), typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseStatusNullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonNullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2NullableJsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3JsonConverter), - - typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3NullableJsonConverter), - typeof(global::StabilityAI.JsonConverters.ImageToImageUsingImageStrengthRequestBodyJsonConverter), typeof(global::StabilityAI.JsonConverters.ImageToImageUsingStepScheduleRequestBodyJsonConverter), @@ -691,6 +391,14 @@ namespace StabilityAI typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter), + typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter), + + typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter), + + typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter), + + typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter), + typeof(global::StabilityAI.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.JsonSerializerContextTypes))] @@ -699,11 +407,11 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.EngineType), TypeInfoPropertyName = "EngineType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ClipGuidancePreset), TypeInfoPropertyName = "ClipGuidancePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Sampler), TypeInfoPropertyName = "Sampler2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.TextPrompt))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -738,17 +446,23 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason), TypeInfoPropertyName = "AudioJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AsyncGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode), TypeInfoPropertyName = "InpaintingSearchModeRequestBodyMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyOutputFormat), TypeInfoPropertyName = "InpaintingSearchModeRequestBodyOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBodyMode), TypeInfoPropertyName = "InpaintingMaskingModeRequestBodyMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBodyOutputFormat), TypeInfoPropertyName = "InpaintingMaskingModeRequestBodyOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FalGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AspectRatio), TypeInfoPropertyName = "AspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageUpscaleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode2")] @@ -780,25 +494,18 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleCreativeRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset), TypeInfoPropertyName = "CreateStableImageUpscaleCreativeRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleFastRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditEraseRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditInpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditInpaintRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditOutpaintRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditOutpaintRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest))] @@ -806,29 +513,21 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection), TypeInfoPropertyName = "CreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageEditReplaceBackgroundAndRelightRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateUltraRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateCoreRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Request))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestMode), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestAspectRatio), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestModel), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset), TypeInfoPropertyName = "CreateStableImageGenerateSd3RequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlSketchRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlSketchRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStructureRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlStructureRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio), TypeInfoPropertyName = "CreateStableImageControlStyleRequestAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStyleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleRequestStylePreset), TypeInfoPropertyName = "CreateStableImageControlStyleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageControlStyleTransferRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.TextToImageAccept), TypeInfoPropertyName = "TextToImageAccept2")] @@ -862,282 +561,19 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleAccept), TypeInfoPropertyName = "CreateStableImageControlStyleAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferAccept), TypeInfoPropertyName = "CreateStableImageControlStyleTransferAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason), TypeInfoPropertyName = "GetResultsResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason2), TypeInfoPropertyName = "GetResultsResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason3), TypeInfoPropertyName = "GetResultsResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseStatus), TypeInfoPropertyName = "GetResultsResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2AudioToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2AudioToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2InpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2InpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseStatus), TypeInfoPropertyName = "FetchAudioResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason), TypeInfoPropertyName = "GetStableImageUpscaleCreativeResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2), TypeInfoPropertyName = "GetStableImageUpscaleCreativeResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3), TypeInfoPropertyName = "GetStableImageUpscaleCreativeResultResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus), TypeInfoPropertyName = "GetStableImageUpscaleCreativeResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditEraseResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditEraseResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditInpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditInpaintResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditOutpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditSearchAndReplaceResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageEditSearchAndRecolorResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageEditRemoveBackgroundResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateUltraResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateCoreResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageGenerateSd3ResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageGenerateSd3Response8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlSketchResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlSketchResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStructureResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStructureResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStyleResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleResponse8))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageControlStyleTransferResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContextTypes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContextTypes.g.cs index 40ca8b2..6fb4eae 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.JsonSerializerContextTypes.g.cs @@ -49,23 +49,23 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public double? Type4 { get; set; } + public global::System.Collections.Generic.IList? Type4 { get; set; } /// /// /// - public global::StabilityAI.ClipGuidancePreset? Type5 { get; set; } + public double? Type5 { get; set; } /// /// /// - public int? Type6 { get; set; } + public global::StabilityAI.ClipGuidancePreset? Type6 { get; set; } /// /// /// - public global::StabilityAI.Sampler? Type7 { get; set; } + public int? Type7 { get; set; } /// /// /// - public long? Type8 { get; set; } + public global::StabilityAI.Sampler? Type8 { get; set; } /// /// /// @@ -205,235 +205,235 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::StabilityAI.ImageJSONResponse? Type43 { get; set; } /// /// /// - public global::StabilityAI.InpaintingSearchModeRequestBody? Type44 { get; set; } + public global::StabilityAI.AllOf? Type44 { get; set; } /// /// /// - public global::StabilityAI.InpaintingSearchModeRequestBodyMode? Type45 { get; set; } + public object? Type45 { get; set; } /// /// /// - public global::StabilityAI.InpaintingSearchModeRequestBodyOutputFormat? Type46 { get; set; } + public global::StabilityAI.ImageJSONResponseFinishReason? Type46 { get; set; } /// /// /// - public global::StabilityAI.InpaintingMaskingModeRequestBody? Type47 { get; set; } + public global::StabilityAI.AudioJSONResponse? Type47 { get; set; } /// /// /// - public global::StabilityAI.InpaintingMaskingModeRequestBodyMode? Type48 { get; set; } + public global::StabilityAI.AudioJSONResponseFinishReason? Type48 { get; set; } /// /// /// - public global::StabilityAI.InpaintingMaskingModeRequestBodyOutputFormat? Type49 { get; set; } + public global::StabilityAI.AsyncGenerationResponse? Type49 { get; set; } /// /// /// - public global::StabilityAI.FalGenerationResponse? Type50 { get; set; } + public global::StabilityAI.StylePreset? Type50 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest? Type51 { get; set; } + public global::StabilityAI.InpaintingSearchModeRequestBody? Type51 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? Type52 { get; set; } + public global::StabilityAI.InpaintingSearchModeRequestBodyMode? Type52 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? Type53 { get; set; } + public global::StabilityAI.InpaintingSearchModeRequestBodyOutputFormat? Type53 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest? Type54 { get; set; } + public global::StabilityAI.InpaintingMaskingModeRequestBody? Type54 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminator? Type55 { get; set; } + public global::StabilityAI.InpaintingMaskingModeRequestBodyMode? Type55 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode? Type56 { get; set; } + public global::StabilityAI.InpaintingMaskingModeRequestBodyOutputFormat? Type56 { get; set; } /// /// /// - public global::StabilityAI.Create3dStableFast3dRequest? Type57 { get; set; } + public global::StabilityAI.AspectRatio? Type57 { get; set; } /// /// /// - public global::StabilityAI.Create3dStableFast3dRequestTextureResolution? Type58 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest? Type58 { get; set; } /// /// /// - public global::StabilityAI.Create3dStableFast3dRequestRemesh? Type59 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? Type59 { get; set; } /// /// /// - public global::StabilityAI.Create3dStablePointAware3dRequest? Type60 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest? Type60 { get; set; } /// /// /// - public global::StabilityAI.Create3dStablePointAware3dRequestTextureResolution? Type61 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminator? Type61 { get; set; } /// /// /// - public global::StabilityAI.Create3dStablePointAware3dRequestRemesh? Type62 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode? Type62 { get; set; } /// /// /// - public global::StabilityAI.Create3dStablePointAware3dRequestTargetType? Type63 { get; set; } + public global::StabilityAI.Create3dStableFast3dRequest? Type63 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest? Type64 { get; set; } + public global::StabilityAI.Create3dStableFast3dRequestTextureResolution? Type64 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel? Type65 { get; set; } + public global::StabilityAI.Create3dStableFast3dRequestRemesh? Type65 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestOutputFormat? Type66 { get; set; } + public global::StabilityAI.Create3dStablePointAware3dRequest? Type66 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest? Type67 { get; set; } + public global::StabilityAI.Create3dStablePointAware3dRequestTextureResolution? Type67 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequestModel? Type68 { get; set; } + public global::StabilityAI.Create3dStablePointAware3dRequestRemesh? Type68 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequestOutputFormat? Type69 { get; set; } + public global::StabilityAI.Create3dStablePointAware3dRequestTargetType? Type69 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2InpaintRequest? Type70 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest? Type70 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2InpaintRequestOutputFormat? Type71 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel? Type71 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioRequest? Type72 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestOutputFormat? Type72 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel? Type73 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest? Type73 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioRequestOutputFormat? Type74 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequestModel? Type74 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest? Type75 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequestOutputFormat? Type75 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequestModel? Type76 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2InpaintRequest? Type76 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequestOutputFormat? Type77 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2InpaintRequestOutputFormat? Type77 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioInpaintRequest? Type78 { get; set; } + public global::StabilityAI.CreateAudioStableAudioTextToAudioRequest? Type78 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioInpaintRequestModel? Type79 { get; set; } + public global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel? Type79 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioInpaintRequestOutputFormat? Type80 { get; set; } + public global::StabilityAI.CreateAudioStableAudioTextToAudioRequestOutputFormat? Type80 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleConservativeRequest? Type81 { get; set; } + public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest? Type81 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat? Type82 { get; set; } + public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequestModel? Type82 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleCreativeRequest? Type83 { get; set; } + public global::StabilityAI.CreateAudioStableAudioAudioToAudioRequestOutputFormat? Type83 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? Type84 { get; set; } + public global::StabilityAI.CreateAudioStableAudioInpaintRequest? Type84 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? Type85 { get; set; } + public global::StabilityAI.CreateAudioStableAudioInpaintRequestModel? Type85 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleFastRequest? Type86 { get; set; } + public global::StabilityAI.CreateAudioStableAudioInpaintRequestOutputFormat? Type86 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat? Type87 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleConservativeRequest? Type87 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditEraseRequest? Type88 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat? Type88 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat? Type89 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleCreativeRequest? Type89 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditInpaintRequest? Type90 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? Type90 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? Type91 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleFastRequest? Type91 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? Type92 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat? Type92 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditOutpaintRequest? Type93 { get; set; } + public global::StabilityAI.CreateStableImageEditEraseRequest? Type93 { get; set; } /// /// /// - public global::StabilityAI.AllOf? Type94 { get; set; } + public global::StabilityAI.CreateStableImageEditEraseRequestOutputFormat? Type94 { get; set; } /// /// /// - public object? Type95 { get; set; } + public global::StabilityAI.CreateStableImageEditInpaintRequest? Type95 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? Type96 { get; set; } + public global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? Type96 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? Type97 { get; set; } + public global::StabilityAI.CreateStableImageEditOutpaintRequest? Type97 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest? Type98 { get; set; } + public global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? Type98 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? Type99 { get; set; } + public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequest? Type99 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? Type100 { get; set; } + public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? Type100 { get; set; } /// /// /// @@ -445,1364 +445,276 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? Type103 { get; set; } + public global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest? Type103 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundRequest? Type104 { get; set; } + public global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat? Type104 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundRequestOutputFormat? Type105 { get; set; } + public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest? Type105 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequest? Type106 { get; set; } + public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestKeepOriginalBackground? Type106 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestKeepOriginalBackground? Type107 { get; set; } + public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection? Type107 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestLightSourceDirection? Type108 { get; set; } + public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestOutputFormat? Type108 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightRequestOutputFormat? Type109 { get; set; } + public global::StabilityAI.CreateStableImageGenerateUltraRequest? Type109 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateUltraRequest? Type110 { get; set; } + public global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? Type110 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? Type111 { get; set; } + public global::StabilityAI.CreateStableImageGenerateCoreRequest? Type111 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? Type112 { get; set; } + public global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? Type112 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? Type113 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3Request? Type113 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateCoreRequest? Type114 { get; set; } + public global::StabilityAI.AllOf? Type114 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? Type115 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3RequestMode? Type115 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? Type116 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3RequestAspectRatio? Type116 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? Type117 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3RequestModel? Type117 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3Request? Type118 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? Type118 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3RequestMode? Type119 { get; set; } + public global::StabilityAI.CreateStableImageControlSketchRequest? Type119 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3RequestAspectRatio? Type120 { get; set; } + public global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? Type120 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3RequestModel? Type121 { get; set; } + public global::StabilityAI.CreateStableImageControlStructureRequest? Type121 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? Type122 { get; set; } + public global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? Type122 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? Type123 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleRequest? Type123 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlSketchRequest? Type124 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? Type124 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? Type125 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleTransferRequest? Type125 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? Type126 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat? Type126 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStructureRequest? Type127 { get; set; } + public global::StabilityAI.TextToImageAccept? Type127 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? Type128 { get; set; } + public global::StabilityAI.ImageToImageAccept? Type128 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? Type129 { get; set; } + public global::StabilityAI.UpscaleImageAccept? Type129 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleRequest? Type130 { get; set; } + public global::StabilityAI.MaskingAccept? Type130 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? Type131 { get; set; } + public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? Type131 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? Type132 { get; set; } + public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept? Type132 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? Type133 { get; set; } + public global::StabilityAI.GetResultsAccept? Type133 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleTransferRequest? Type134 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept? Type134 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleTransferRequestOutputFormat? Type135 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2AudioToAudioAccept? Type135 { get; set; } /// /// /// - public global::StabilityAI.TextToImageAccept? Type136 { get; set; } + public global::StabilityAI.CreateAudioStableAudio2InpaintAccept? Type136 { get; set; } /// /// /// - public global::StabilityAI.ImageToImageAccept? Type137 { get; set; } + public global::StabilityAI.CreateAudioStableAudioTextToAudioAccept? Type137 { get; set; } /// /// /// - public global::StabilityAI.UpscaleImageAccept? Type138 { get; set; } + public global::StabilityAI.CreateAudioStableAudioAudioToAudioAccept? Type138 { get; set; } /// /// /// - public global::StabilityAI.MaskingAccept? Type139 { get; set; } + public global::StabilityAI.CreateAudioStableAudioInpaintAccept? Type139 { get; set; } /// /// /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? Type140 { get; set; } + public global::StabilityAI.FetchAudioResultAccept? Type140 { get; set; } /// /// /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept? Type141 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleConservativeAccept? Type141 { get; set; } /// /// /// - public global::StabilityAI.GetResultsAccept? Type142 { get; set; } + public global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? Type142 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept? Type143 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleFastAccept? Type143 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioAccept? Type144 { get; set; } + public global::StabilityAI.CreateStableImageEditEraseAccept? Type144 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudio2InpaintAccept? Type145 { get; set; } + public global::StabilityAI.CreateStableImageEditInpaintAccept? Type145 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioAccept? Type146 { get; set; } + public global::StabilityAI.CreateStableImageEditOutpaintAccept? Type146 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioAccept? Type147 { get; set; } + public global::StabilityAI.CreateStableImageEditSearchAndReplaceAccept? Type147 { get; set; } /// /// /// - public global::StabilityAI.CreateAudioStableAudioInpaintAccept? Type148 { get; set; } + public global::StabilityAI.CreateStableImageEditSearchAndRecolorAccept? Type148 { get; set; } /// /// /// - public global::StabilityAI.FetchAudioResultAccept? Type149 { get; set; } + public global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept? Type149 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleConservativeAccept? Type150 { get; set; } + public global::StabilityAI.CreateStableImageGenerateUltraAccept? Type150 { get; set; } /// /// /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? Type151 { get; set; } + public global::StabilityAI.CreateStableImageGenerateCoreAccept? Type151 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageUpscaleFastAccept? Type152 { get; set; } + public global::StabilityAI.CreateStableImageGenerateSd3Accept? Type152 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditEraseAccept? Type153 { get; set; } + public global::StabilityAI.CreateStableImageControlSketchAccept? Type153 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditInpaintAccept? Type154 { get; set; } + public global::StabilityAI.CreateStableImageControlStructureAccept? Type154 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditOutpaintAccept? Type155 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleAccept? Type155 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceAccept? Type156 { get; set; } + public global::StabilityAI.CreateStableImageControlStyleTransferAccept? Type156 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorAccept? Type157 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundAccept? Type158 { get; set; } + public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse? Type158 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateUltraAccept? Type159 { get; set; } + public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus? Type159 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateCoreAccept? Type160 { get; set; } + public global::StabilityAI.GetResultsResponse? Type160 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageGenerateSd3Accept? Type161 { get; set; } + public global::StabilityAI.GetResultsResponseStatus? Type161 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlSketchAccept? Type162 { get; set; } + public global::StabilityAI.FetchAudioResultResponse? Type162 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStructureAccept? Type163 { get; set; } + public global::StabilityAI.FetchAudioResultResponseStatus? Type163 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleAccept? Type164 { get; set; } + public global::StabilityAI.CreateStableImageUpscaleCreativeResponse? Type164 { get; set; } /// /// /// - public global::StabilityAI.CreateStableImageControlStyleTransferAccept? Type165 { get; set; } + public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse? Type167 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? Type168 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? Type169 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse? Type170 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason? Type171 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2? Type172 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2? Type173 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3? Type174 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3? Type175 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4? Type176 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus? Type177 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? Type178 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? Type179 { get; set; } - /// - /// - /// - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? Type180 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse? Type181 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason? Type182 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2? Type183 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2? Type184 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3? Type185 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3? Type186 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? Type187 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? Type188 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStableFast3dResponse? Type189 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStableFast3dResponse2? Type190 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStableFast3dResponse3? Type191 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStableFast3dResponse4? Type192 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStablePointAware3dResponse? Type193 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStablePointAware3dResponse2? Type194 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStablePointAware3dResponse3? Type195 { get; set; } - /// - /// - /// - public global::StabilityAI.Create3dStablePointAware3dResponse4? Type196 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse? Type197 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponseFinishReason? Type198 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse2? Type199 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponseFinishReason2? Type200 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse3? Type201 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponseFinishReason3? Type202 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse4? Type203 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponseStatus? Type204 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse5? Type205 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse6? Type206 { get; set; } - /// - /// - /// - public global::StabilityAI.GetResultsResponse7? Type207 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse? Type208 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason? Type209 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2? Type210 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2? Type211 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? Type212 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? Type213 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? Type214 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? Type215 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse? Type216 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason? Type217 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2? Type218 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2? Type219 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? Type220 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? Type221 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? Type222 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? Type223 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse? Type224 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason? Type225 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse2? Type226 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2? Type227 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? Type228 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? Type229 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? Type230 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? Type231 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioResponse? Type232 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2? Type233 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3? Type234 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4? Type235 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5? Type236 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse? Type237 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? Type238 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? Type239 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? Type240 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? Type241 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioInpaintResponse? Type242 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioInpaintResponse2? Type243 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioInpaintResponse3? Type244 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioInpaintResponse4? Type245 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateAudioStableAudioInpaintResponse5? Type246 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse? Type247 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponseFinishReason? Type248 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse2? Type249 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponseFinishReason2? Type250 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse3? Type251 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponseStatus? Type252 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse4? Type253 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse5? Type254 { get; set; } - /// - /// - /// - public global::StabilityAI.FetchAudioResultResponse6? Type255 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse? Type256 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason? Type257 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse2? Type258 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2? Type259 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse3? Type260 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3? Type261 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? Type262 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? Type263 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? Type264 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? Type265 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? Type266 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse? Type267 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? Type268 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? Type269 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? Type270 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? Type271 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? Type272 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse? Type273 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason? Type274 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2? Type275 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2? Type276 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3? Type277 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3? Type278 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4? Type279 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus? Type280 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? Type281 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? Type282 { get; set; } - /// - /// - /// - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? Type283 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse? Type284 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason? Type285 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse2? Type286 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2? Type287 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse3? Type288 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3? Type289 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse4? Type290 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse5? Type291 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse6? Type292 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse7? Type293 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageUpscaleFastResponse8? Type294 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse? Type295 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponseFinishReason? Type296 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse2? Type297 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2? Type298 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse3? Type299 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3? Type300 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse4? Type301 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse5? Type302 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse6? Type303 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditEraseResponse7? Type304 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse? Type305 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason? Type306 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse2? Type307 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2? Type308 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse3? Type309 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3? Type310 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse4? Type311 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse5? Type312 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse6? Type313 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse7? Type314 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditInpaintResponse8? Type315 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse? Type316 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason? Type317 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse2? Type318 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2? Type319 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse3? Type320 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3? Type321 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse4? Type322 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse5? Type323 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse6? Type324 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse7? Type325 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditOutpaintResponse8? Type326 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse? Type327 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason? Type328 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2? Type329 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2? Type330 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3? Type331 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3? Type332 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? Type333 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? Type334 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? Type335 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? Type336 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? Type337 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse? Type338 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason? Type339 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2? Type340 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2? Type341 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3? Type342 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3? Type343 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? Type344 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? Type345 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? Type346 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? Type347 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? Type348 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse? Type349 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason? Type350 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2? Type351 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2? Type352 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? Type353 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? Type354 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? Type355 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? Type356 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse? Type357 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? Type358 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? Type359 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? Type360 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? Type361 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? Type362 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse? Type363 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason? Type364 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse2? Type365 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2? Type366 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse3? Type367 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3? Type368 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse4? Type369 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse5? Type370 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse6? Type371 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse7? Type372 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateUltraResponse8? Type373 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse? Type374 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason? Type375 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse2? Type376 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2? Type377 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse3? Type378 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3? Type379 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse4? Type380 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse5? Type381 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse6? Type382 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateCoreResponse7? Type383 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response? Type384 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason? Type385 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response2? Type386 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2? Type387 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response3? Type388 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3? Type389 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response4? Type390 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response5? Type391 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response6? Type392 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response7? Type393 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageGenerateSd3Response8? Type394 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse? Type395 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponseFinishReason? Type396 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse2? Type397 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2? Type398 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse3? Type399 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3? Type400 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse4? Type401 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse5? Type402 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse6? Type403 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse7? Type404 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlSketchResponse8? Type405 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse? Type406 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponseFinishReason? Type407 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse2? Type408 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2? Type409 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse3? Type410 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3? Type411 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse4? Type412 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse5? Type413 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse6? Type414 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse7? Type415 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStructureResponse8? Type416 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse? Type417 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponseFinishReason? Type418 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse2? Type419 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2? Type420 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse3? Type421 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3? Type422 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse4? Type423 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse5? Type424 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse6? Type425 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse7? Type426 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleResponse8? Type427 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse? Type428 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason? Type429 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse2? Type430 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2? Type431 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse3? Type432 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3? Type433 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse4? Type434 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse5? Type435 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse6? Type436 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse7? Type437 { get; set; } - /// - /// - /// - public global::StabilityAI.CreateStableImageControlStyleTransferResponse8? Type438 { get; set; } + public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus? Type166 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.AspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AspectRatio.g.cs new file mode 100644 index 0000000..04a1e72 --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AspectRatio.g.cs @@ -0,0 +1,94 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// Controls the aspect ratio of the generated image.
+ /// Default Value: 1:1 + ///
+ public enum AspectRatio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x2_3, + /// + /// + /// + x3_2, + /// + /// + /// + x4_5, + /// + /// + /// + x5_4, + /// + /// + /// + x9_16, + /// + /// + /// + x9_21, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AspectRatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AspectRatio value) + { + return value switch + { + AspectRatio.x16_9 => "16:9", + AspectRatio.x1_1 => "1:1", + AspectRatio.x21_9 => "21:9", + AspectRatio.x2_3 => "2:3", + AspectRatio.x3_2 => "3:2", + AspectRatio.x4_5 => "4:5", + AspectRatio.x5_4 => "5:4", + AspectRatio.x9_16 => "9:16", + AspectRatio.x9_21 => "9:21", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AspectRatio? ToEnum(string value) + { + return value switch + { + "16:9" => AspectRatio.x16_9, + "1:1" => AspectRatio.x1_1, + "21:9" => AspectRatio.x21_9, + "2:3" => AspectRatio.x2_3, + "3:2" => AspectRatio.x3_2, + "4:5" => AspectRatio.x4_5, + "5:4" => AspectRatio.x5_4, + "9:16" => AspectRatio.x9_16, + "9:21" => AspectRatio.x9_21, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.Json.g.cs similarity index 87% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.Json.g.cs index dcdcc6f..f096696 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class GetResultsResponse4 + public sealed partial class AsyncGenerationResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse4? FromJson( + public static global::StabilityAI.AsyncGenerationResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.GetResultsResponse4), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse4; + typeof(global::StabilityAI.AsyncGenerationResponse), + jsonSerializerContext) as global::StabilityAI.AsyncGenerationResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse4? FromJson( + public static global::StabilityAI.AsyncGenerationResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.GetResultsResponse4? FromJson( + public static global::StabilityAI.AsyncGenerationResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.GetResultsResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse4; + typeof(global::StabilityAI.AsyncGenerationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.AsyncGenerationResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.g.cs similarity index 81% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.g.cs index d6464d7..a054038 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AsyncGenerationResponse.g.cs @@ -6,7 +6,7 @@ namespace StabilityAI /// /// /// - public sealed partial class CreateAudioStableAudioInpaintResponse + public sealed partial class AsyncGenerationResponse { /// /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
@@ -24,7 +24,7 @@ public sealed partial class CreateAudioStableAudioInpaintResponse 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 `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
@@ -33,16 +33,16 @@ public sealed partial class CreateAudioStableAudioInpaintResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CreateAudioStableAudioInpaintResponse( + public AsyncGenerationResponse( string id) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CreateAudioStableAudioInpaintResponse() + public AsyncGenerationResponse() { } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.Json.g.cs similarity index 88% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.Json.g.cs index 1a14881..8c7e07f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class GetResultsResponse2 + public sealed partial class AudioJSONResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse2? FromJson( + public static global::StabilityAI.AudioJSONResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.GetResultsResponse2), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse2; + typeof(global::StabilityAI.AudioJSONResponse), + jsonSerializerContext) as global::StabilityAI.AudioJSONResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse2? FromJson( + public static global::StabilityAI.AudioJSONResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.GetResultsResponse2? FromJson( + public static global::StabilityAI.AudioJSONResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.GetResultsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse2; + typeof(global::StabilityAI.AudioJSONResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.AudioJSONResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.g.cs similarity index 67% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.g.cs index 3fa8fb7..d26bcc4 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponse.g.cs @@ -6,7 +6,7 @@ namespace StabilityAI /// /// /// - public sealed partial class FetchAudioResultResponse2 + public sealed partial class AudioJSONResponse { /// /// The generated audio, encoded to base64.
@@ -18,13 +18,11 @@ public sealed partial class FetchAudioResultResponse2 public required string Audio { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// ///
- /// 343940597 [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter))] + public global::StabilityAI.AllOf? Seed { get; set; } /// /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
@@ -32,8 +30,8 @@ public sealed partial class FetchAudioResultResponse2 ///
/// SUCCESS [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2JsonConverter))] - public global::StabilityAI.FetchAudioResultResponseFinishReason2 FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonJsonConverter))] + public global::StabilityAI.AudioJSONResponseFinishReason FinishReason { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,17 +40,13 @@ public sealed partial class FetchAudioResultResponse2 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 generated audio, encoded to base64.
/// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// + /// /// /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
/// Example: SUCCESS @@ -60,10 +54,10 @@ public sealed partial class FetchAudioResultResponse2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public FetchAudioResultResponse2( + public AudioJSONResponse( string audio, - double? seed, - global::StabilityAI.FetchAudioResultResponseFinishReason2 finishReason) + global::StabilityAI.AllOf? seed, + global::StabilityAI.AudioJSONResponseFinishReason finishReason) { this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); this.Seed = seed; @@ -71,9 +65,9 @@ public FetchAudioResultResponse2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public FetchAudioResultResponse2() + public AudioJSONResponse() { } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseFinishReason.g.cs similarity index 66% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseFinishReason.g.cs index 415eca7..7c4662e 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseFinishReason.g.cs @@ -7,7 +7,7 @@ namespace StabilityAI /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
/// Example: SUCCESS ///
- public enum FetchAudioResultResponseFinishReason + public enum AudioJSONResponseFinishReason { /// /// @@ -18,27 +18,27 @@ public enum FetchAudioResultResponseFinishReason /// /// Enum extensions to do fast conversions without the reflection. /// - public static class FetchAudioResultResponseFinishReasonExtensions + public static class AudioJSONResponseFinishReasonExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this FetchAudioResultResponseFinishReason value) + public static string ToValueString(this AudioJSONResponseFinishReason value) { return value switch { - FetchAudioResultResponseFinishReason.Success => "SUCCESS", + AudioJSONResponseFinishReason.Success => "SUCCESS", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static FetchAudioResultResponseFinishReason? ToEnum(string value) + public static AudioJSONResponseFinishReason? ToEnum(string value) { return value switch { - "SUCCESS" => FetchAudioResultResponseFinishReason.Success, + "SUCCESS" => AudioJSONResponseFinishReason.Success, _ => null, }; } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.Json.g.cs similarity index 88% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.Json.g.cs index 3c6258b..72252c0 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class FalGenerationResponse + public sealed partial class AudioJSONResponseSeed { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.FalGenerationResponse? FromJson( + public static global::StabilityAI.AudioJSONResponseSeed? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.FalGenerationResponse), - jsonSerializerContext) as global::StabilityAI.FalGenerationResponse; + typeof(global::StabilityAI.AudioJSONResponseSeed), + jsonSerializerContext) as global::StabilityAI.AudioJSONResponseSeed; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.FalGenerationResponse? FromJson( + public static global::StabilityAI.AudioJSONResponseSeed? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.FalGenerationResponse? FromJson( + public static global::StabilityAI.AudioJSONResponseSeed? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.FalGenerationResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FalGenerationResponse; + typeof(global::StabilityAI.AudioJSONResponseSeed), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.AudioJSONResponseSeed; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.g.cs new file mode 100644 index 0000000..d3a00b1 --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.AudioJSONResponseSeed.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// The seed used as random noise for this generation.
+ /// Example: 343940597 + ///
+ public sealed partial class AudioJSONResponseSeed + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.Json.g.cs deleted file mode 100644 index 346544e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStableFast3dResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStableFast3dResponse), - jsonSerializerContext) as global::StabilityAI.Create3dStableFast3dResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStableFast3dResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStableFast3dResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStableFast3dResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.g.cs deleted file mode 100644 index fdf8fbf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class Create3dStableFast3dResponse - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStableFast3dResponse( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStableFast3dResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.Json.g.cs deleted file mode 100644 index 10b386e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStableFast3dResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStableFast3dResponse2), - jsonSerializerContext) as global::StabilityAI.Create3dStableFast3dResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStableFast3dResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStableFast3dResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStableFast3dResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.g.cs deleted file mode 100644 index be8841a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class Create3dStableFast3dResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStableFast3dResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStableFast3dResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.Json.g.cs deleted file mode 100644 index 1c4dd38..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStableFast3dResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStableFast3dResponse3), - jsonSerializerContext) as global::StabilityAI.Create3dStableFast3dResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStableFast3dResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStableFast3dResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStableFast3dResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.g.cs deleted file mode 100644 index 7244445..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class Create3dStableFast3dResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStableFast3dResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStableFast3dResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.Json.g.cs deleted file mode 100644 index a0e1a24..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStableFast3dResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStableFast3dResponse4), - jsonSerializerContext) as global::StabilityAI.Create3dStableFast3dResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStableFast3dResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStableFast3dResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStableFast3dResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStableFast3dResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.g.cs deleted file mode 100644 index 6f48cb7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStableFast3dResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class Create3dStableFast3dResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStableFast3dResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStableFast3dResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.Json.g.cs deleted file mode 100644 index 63030c2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStablePointAware3dResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse), - jsonSerializerContext) as global::StabilityAI.Create3dStablePointAware3dResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStablePointAware3dResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStablePointAware3dResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.g.cs deleted file mode 100644 index cde69cf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class Create3dStablePointAware3dResponse - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStablePointAware3dResponse( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStablePointAware3dResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.Json.g.cs deleted file mode 100644 index 98c1621..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStablePointAware3dResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse2), - jsonSerializerContext) as global::StabilityAI.Create3dStablePointAware3dResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStablePointAware3dResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStablePointAware3dResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.g.cs deleted file mode 100644 index 46811a6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class Create3dStablePointAware3dResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStablePointAware3dResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStablePointAware3dResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.Json.g.cs deleted file mode 100644 index e50dff2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStablePointAware3dResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse3), - jsonSerializerContext) as global::StabilityAI.Create3dStablePointAware3dResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStablePointAware3dResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStablePointAware3dResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.g.cs deleted file mode 100644 index 9605a33..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class Create3dStablePointAware3dResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStablePointAware3dResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStablePointAware3dResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.Json.g.cs deleted file mode 100644 index 9994c1e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class Create3dStablePointAware3dResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse4), - jsonSerializerContext) as global::StabilityAI.Create3dStablePointAware3dResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.Create3dStablePointAware3dResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.Create3dStablePointAware3dResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.Create3dStablePointAware3dResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.Create3dStablePointAware3dResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.g.cs deleted file mode 100644 index 3787c13..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Create3dStablePointAware3dResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class Create3dStablePointAware3dResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Create3dStablePointAware3dResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public Create3dStablePointAware3dResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.Json.g.cs deleted file mode 100644 index 4b8cf41..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.g.cs deleted file mode 100644 index 2f5abde..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonJsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.Json.g.cs deleted file mode 100644 index 1815ae9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.g.cs deleted file mode 100644 index 30f1fb3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse2.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse2 - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2JsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse2( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2 finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.Json.g.cs deleted file mode 100644 index 2380480..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.g.cs deleted file mode 100644 index a052c1a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.Json.g.cs deleted file mode 100644 index 407ffd5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.g.cs deleted file mode 100644 index a33d8ac..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.Json.g.cs deleted file mode 100644 index dc7c216..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.g.cs deleted file mode 100644 index 9bb7202..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.Json.g.cs deleted file mode 100644 index 7815370..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.g.cs deleted file mode 100644 index a1941d9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudio2AudioToAudioResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2AudioToAudioResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2AudioToAudioResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs deleted file mode 100644 index e3aa9da..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2AudioToAudioResponseFinishReason - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2AudioToAudioResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2AudioToAudioResponseFinishReason value) - { - return value switch - { - CreateAudioStableAudio2AudioToAudioResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2AudioToAudioResponseFinishReason? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2AudioToAudioResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs deleted file mode 100644 index 57e3189..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2AudioToAudioResponseFinishReason2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2AudioToAudioResponseFinishReason2 - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2AudioToAudioResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2AudioToAudioResponseFinishReason2 value) - { - return value switch - { - CreateAudioStableAudio2AudioToAudioResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2AudioToAudioResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2AudioToAudioResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.Json.g.cs deleted file mode 100644 index 78965c1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.g.cs deleted file mode 100644 index afb6a00..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonJsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.Json.g.cs deleted file mode 100644 index dd4d181..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.g.cs deleted file mode 100644 index bd64643..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse2.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse2 - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2JsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse2( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2 finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.Json.g.cs deleted file mode 100644 index 35630d4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.g.cs deleted file mode 100644 index 2350fda..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.Json.g.cs deleted file mode 100644 index 88e6b08..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.g.cs deleted file mode 100644 index 004e8e9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.Json.g.cs deleted file mode 100644 index 9fab9b4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.g.cs deleted file mode 100644 index befebea..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.Json.g.cs deleted file mode 100644 index 9259e83..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2InpaintResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse6), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2InpaintResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.g.cs deleted file mode 100644 index 616cedc..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudio2InpaintResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2InpaintResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2InpaintResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs deleted file mode 100644 index 537123a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2InpaintResponseFinishReason - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2InpaintResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2InpaintResponseFinishReason value) - { - return value switch - { - CreateAudioStableAudio2InpaintResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2InpaintResponseFinishReason? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2InpaintResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs deleted file mode 100644 index 7c3ba57..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2InpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2InpaintResponseFinishReason2 - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2InpaintResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2InpaintResponseFinishReason2 value) - { - return value switch - { - CreateAudioStableAudio2InpaintResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2InpaintResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2InpaintResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.Json.g.cs deleted file mode 100644 index df8f8e9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.g.cs deleted file mode 100644 index 442c560..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonJsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.Json.g.cs deleted file mode 100644 index 838b6bf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.g.cs deleted file mode 100644 index 04d6d57..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse2.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse2 - { - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2JsonConverter))] - public global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse2( - string audio, - double? seed, - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2 finishReason) - { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.Json.g.cs deleted file mode 100644 index 45b304b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.g.cs deleted file mode 100644 index bd37b47..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.Json.g.cs deleted file mode 100644 index 3506b01..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.g.cs deleted file mode 100644 index 69897fd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.Json.g.cs deleted file mode 100644 index 6720301..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.g.cs deleted file mode 100644 index 0a918ac..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.Json.g.cs deleted file mode 100644 index 71a751a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudio2TextToAudioResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.g.cs deleted file mode 100644 index 9b50886..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudio2TextToAudioResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudio2TextToAudioResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudio2TextToAudioResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs deleted file mode 100644 index dbbe12e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2TextToAudioResponseFinishReason - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2TextToAudioResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2TextToAudioResponseFinishReason value) - { - return value switch - { - CreateAudioStableAudio2TextToAudioResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2TextToAudioResponseFinishReason? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2TextToAudioResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs deleted file mode 100644 index 9144d98..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudio2TextToAudioResponseFinishReason2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum CreateAudioStableAudio2TextToAudioResponseFinishReason2 - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateAudioStableAudio2TextToAudioResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateAudioStableAudio2TextToAudioResponseFinishReason2 value) - { - return value switch - { - CreateAudioStableAudio2TextToAudioResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateAudioStableAudio2TextToAudioResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "SUCCESS" => CreateAudioStableAudio2TextToAudioResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.Json.g.cs deleted file mode 100644 index 45bcb04..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioAudioToAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.g.cs deleted file mode 100644 index 5acb9e8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse.g.cs +++ /dev/null @@ -1,50 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioAudioToAudioResponse - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioAudioToAudioResponse( - string id) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioAudioToAudioResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.Json.g.cs deleted file mode 100644 index 66ef055..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioAudioToAudioResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.g.cs deleted file mode 100644 index 73400ee..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioAudioToAudioResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioAudioToAudioResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioAudioToAudioResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.Json.g.cs deleted file mode 100644 index cde1a7a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioAudioToAudioResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.g.cs deleted file mode 100644 index c0bebd0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioAudioToAudioResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioAudioToAudioResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioAudioToAudioResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.Json.g.cs deleted file mode 100644 index 60b094a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioAudioToAudioResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.g.cs deleted file mode 100644 index c273c5e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudioAudioToAudioResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioAudioToAudioResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioAudioToAudioResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.Json.g.cs deleted file mode 100644 index 08b1f74..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioAudioToAudioResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.g.cs deleted file mode 100644 index bf11989..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioAudioToAudioResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudioAudioToAudioResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioAudioToAudioResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioAudioToAudioResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.Json.g.cs deleted file mode 100644 index cb46b3e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioInpaintResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioInpaintResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioInpaintResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.Json.g.cs deleted file mode 100644 index 7b178a9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioInpaintResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioInpaintResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioInpaintResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.g.cs deleted file mode 100644 index c4111e1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioInpaintResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioInpaintResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioInpaintResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.Json.g.cs deleted file mode 100644 index a2f29ed..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioInpaintResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioInpaintResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioInpaintResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.g.cs deleted file mode 100644 index e2c494e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioInpaintResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioInpaintResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioInpaintResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.Json.g.cs deleted file mode 100644 index 1564341..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioInpaintResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioInpaintResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioInpaintResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.g.cs deleted file mode 100644 index 199dc1d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudioInpaintResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioInpaintResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioInpaintResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.Json.g.cs deleted file mode 100644 index ba59b5e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioInpaintResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioInpaintResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioInpaintResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioInpaintResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.g.cs deleted file mode 100644 index 0e23eba..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioInpaintResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudioInpaintResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioInpaintResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioInpaintResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.Json.g.cs deleted file mode 100644 index aa56bd4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioTextToAudioResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.g.cs deleted file mode 100644 index 5d86074..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse.g.cs +++ /dev/null @@ -1,50 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioTextToAudioResponse - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioTextToAudioResponse( - string id) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioTextToAudioResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.Json.g.cs deleted file mode 100644 index c38ca21..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioTextToAudioResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.g.cs deleted file mode 100644 index 37b9e24..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioTextToAudioResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioTextToAudioResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioTextToAudioResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.Json.g.cs deleted file mode 100644 index 366863e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioTextToAudioResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.g.cs deleted file mode 100644 index 70fd5b3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateAudioStableAudioTextToAudioResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioTextToAudioResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioTextToAudioResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.Json.g.cs deleted file mode 100644 index ae806f2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioTextToAudioResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.g.cs deleted file mode 100644 index 15f8c87..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateAudioStableAudioTextToAudioResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioTextToAudioResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioTextToAudioResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.Json.g.cs deleted file mode 100644 index 9be5ef5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateAudioStableAudioTextToAudioResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5), - jsonSerializerContext) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.g.cs deleted file mode 100644 index 59b3e09..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateAudioStableAudioTextToAudioResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateAudioStableAudioTextToAudioResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateAudioStableAudioTextToAudioResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateAudioStableAudioTextToAudioResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequest.g.cs index efea467..ec637a4 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequest.g.cs @@ -87,8 +87,8 @@ public sealed partial class CreateStableImageControlSketchRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -161,7 +161,7 @@ public CreateStableImageControlSketchRequest( string? negativePrompt, double? seed, global::StabilityAI.CreateStableImageControlSketchRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageControlSketchRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequestStylePreset.g.cs deleted file mode 100644 index cc18a2a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageControlSketchRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlSketchRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlSketchRequestStylePreset value) - { - return value switch - { - CreateStableImageControlSketchRequestStylePreset.x3dModel => "3d-model", - CreateStableImageControlSketchRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageControlSketchRequestStylePreset.Anime => "anime", - CreateStableImageControlSketchRequestStylePreset.Cinematic => "cinematic", - CreateStableImageControlSketchRequestStylePreset.ComicBook => "comic-book", - CreateStableImageControlSketchRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageControlSketchRequestStylePreset.Enhance => "enhance", - CreateStableImageControlSketchRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageControlSketchRequestStylePreset.Isometric => "isometric", - CreateStableImageControlSketchRequestStylePreset.LineArt => "line-art", - CreateStableImageControlSketchRequestStylePreset.LowPoly => "low-poly", - CreateStableImageControlSketchRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageControlSketchRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageControlSketchRequestStylePreset.Origami => "origami", - CreateStableImageControlSketchRequestStylePreset.Photographic => "photographic", - CreateStableImageControlSketchRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageControlSketchRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlSketchRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageControlSketchRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageControlSketchRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageControlSketchRequestStylePreset.Anime, - "cinematic" => CreateStableImageControlSketchRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageControlSketchRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageControlSketchRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageControlSketchRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageControlSketchRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageControlSketchRequestStylePreset.Isometric, - "line-art" => CreateStableImageControlSketchRequestStylePreset.LineArt, - "low-poly" => CreateStableImageControlSketchRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageControlSketchRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageControlSketchRequestStylePreset.NeonPunk, - "origami" => CreateStableImageControlSketchRequestStylePreset.Origami, - "photographic" => CreateStableImageControlSketchRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageControlSketchRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageControlSketchRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.Json.g.cs deleted file mode 100644 index 196f6cf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.g.cs deleted file mode 100644 index a807c6b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlSketchResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlSketchResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse( - string image, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.Json.g.cs deleted file mode 100644 index fbcfb17..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.g.cs deleted file mode 100644 index 288ee11..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlSketchResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse2( - string image, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.Json.g.cs deleted file mode 100644 index 0852819..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.g.cs deleted file mode 100644 index bc596e2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlSketchResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlSketchResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse3( - string image, - global::StabilityAI.CreateStableImageControlSketchResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.Json.g.cs deleted file mode 100644 index a124388..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.g.cs deleted file mode 100644 index 34e57dd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlSketchResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.Json.g.cs deleted file mode 100644 index f7c012c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.g.cs deleted file mode 100644 index e34fc15..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageControlSketchResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.Json.g.cs deleted file mode 100644 index ae8b953..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.g.cs deleted file mode 100644 index e4eeba1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlSketchResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.Json.g.cs deleted file mode 100644 index ac27f72..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.g.cs deleted file mode 100644 index d4aaa31..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageControlSketchResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.Json.g.cs deleted file mode 100644 index c8fa32e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlSketchResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlSketchResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlSketchResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlSketchResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlSketchResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlSketchResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.g.cs deleted file mode 100644 index 723dcd4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageControlSketchResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlSketchResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlSketchResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason.g.cs deleted file mode 100644 index e9a715f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlSketchResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlSketchResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlSketchResponseFinishReason value) - { - return value switch - { - CreateStableImageControlSketchResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlSketchResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlSketchResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlSketchResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageControlSketchResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason2.g.cs deleted file mode 100644 index a91446b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlSketchResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlSketchResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlSketchResponseFinishReason2 value) - { - return value switch - { - CreateStableImageControlSketchResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlSketchResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlSketchResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlSketchResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageControlSketchResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason3.g.cs deleted file mode 100644 index 58e099a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlSketchResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlSketchResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlSketchResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlSketchResponseFinishReason3 value) - { - return value switch - { - CreateStableImageControlSketchResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlSketchResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlSketchResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlSketchResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageControlSketchResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequest.g.cs index 901d612..95e4b2b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequest.g.cs @@ -87,8 +87,8 @@ public sealed partial class CreateStableImageControlStructureRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -161,7 +161,7 @@ public CreateStableImageControlStructureRequest( string? negativePrompt, double? seed, global::StabilityAI.CreateStableImageControlStructureRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageControlStructureRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequestStylePreset.g.cs deleted file mode 100644 index f798827..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageControlStructureRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStructureRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStructureRequestStylePreset value) - { - return value switch - { - CreateStableImageControlStructureRequestStylePreset.x3dModel => "3d-model", - CreateStableImageControlStructureRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageControlStructureRequestStylePreset.Anime => "anime", - CreateStableImageControlStructureRequestStylePreset.Cinematic => "cinematic", - CreateStableImageControlStructureRequestStylePreset.ComicBook => "comic-book", - CreateStableImageControlStructureRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageControlStructureRequestStylePreset.Enhance => "enhance", - CreateStableImageControlStructureRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageControlStructureRequestStylePreset.Isometric => "isometric", - CreateStableImageControlStructureRequestStylePreset.LineArt => "line-art", - CreateStableImageControlStructureRequestStylePreset.LowPoly => "low-poly", - CreateStableImageControlStructureRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageControlStructureRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageControlStructureRequestStylePreset.Origami => "origami", - CreateStableImageControlStructureRequestStylePreset.Photographic => "photographic", - CreateStableImageControlStructureRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageControlStructureRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStructureRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageControlStructureRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageControlStructureRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageControlStructureRequestStylePreset.Anime, - "cinematic" => CreateStableImageControlStructureRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageControlStructureRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageControlStructureRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageControlStructureRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageControlStructureRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageControlStructureRequestStylePreset.Isometric, - "line-art" => CreateStableImageControlStructureRequestStylePreset.LineArt, - "low-poly" => CreateStableImageControlStructureRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageControlStructureRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageControlStructureRequestStylePreset.NeonPunk, - "origami" => CreateStableImageControlStructureRequestStylePreset.Origami, - "photographic" => CreateStableImageControlStructureRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageControlStructureRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageControlStructureRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.Json.g.cs deleted file mode 100644 index 85775a4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.g.cs deleted file mode 100644 index 1a35843..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStructureResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStructureResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse( - string image, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.Json.g.cs deleted file mode 100644 index b58f15c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.g.cs deleted file mode 100644 index 4617d36..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStructureResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse2( - string image, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.Json.g.cs deleted file mode 100644 index 461fea6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.g.cs deleted file mode 100644 index 5c1efda..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStructureResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStructureResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse3( - string image, - global::StabilityAI.CreateStableImageControlStructureResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.Json.g.cs deleted file mode 100644 index 859a4ea..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.g.cs deleted file mode 100644 index 548e359..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStructureResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.Json.g.cs deleted file mode 100644 index 905f447..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.g.cs deleted file mode 100644 index 87fbdd7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageControlStructureResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.Json.g.cs deleted file mode 100644 index 159dabf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.g.cs deleted file mode 100644 index 7a217d3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStructureResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.Json.g.cs deleted file mode 100644 index 70d3e97..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.g.cs deleted file mode 100644 index e4b1e1e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageControlStructureResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.Json.g.cs deleted file mode 100644 index 8275581..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStructureResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStructureResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStructureResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStructureResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStructureResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStructureResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.g.cs deleted file mode 100644 index 4c1196c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageControlStructureResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStructureResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStructureResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason.g.cs deleted file mode 100644 index ee8f10a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStructureResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStructureResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStructureResponseFinishReason value) - { - return value switch - { - CreateStableImageControlStructureResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStructureResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStructureResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStructureResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageControlStructureResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason2.g.cs deleted file mode 100644 index 4d94b4c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStructureResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStructureResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStructureResponseFinishReason2 value) - { - return value switch - { - CreateStableImageControlStructureResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStructureResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStructureResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStructureResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageControlStructureResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason3.g.cs deleted file mode 100644 index a044ed7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStructureResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStructureResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStructureResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStructureResponseFinishReason3 value) - { - return value switch - { - CreateStableImageControlStructureResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStructureResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStructureResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStructureResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageControlStructureResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequest.g.cs index af1b8db..74294e9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequest.g.cs @@ -66,8 +66,8 @@ public sealed partial class CreateStableImageControlStyleRequest /// Default Value: 1:1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestAspectRatioJsonConverter))] - public global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? AspectRatio { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AspectRatioJsonConverter))] + public global::StabilityAI.AspectRatio? AspectRatio { get; set; } /// /// How closely the output image's style resembles the input image's style.
@@ -95,8 +95,8 @@ public sealed partial class CreateStableImageControlStyleRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -170,11 +170,11 @@ public CreateStableImageControlStyleRequest( byte[] image, string imagename, string? negativePrompt, - global::StabilityAI.CreateStableImageControlStyleRequestAspectRatio? aspectRatio, + global::StabilityAI.AspectRatio? aspectRatio, double? fidelity, double? seed, global::StabilityAI.CreateStableImageControlStyleRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageControlStyleRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestAspectRatio.g.cs deleted file mode 100644 index fb765c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestAspectRatio.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Controls the aspect ratio of the generated image.
- /// Default Value: 1:1 - ///
- public enum CreateStableImageControlStyleRequestAspectRatio - { - /// - /// - /// - x16_9, - /// - /// - /// - x1_1, - /// - /// - /// - x21_9, - /// - /// - /// - x2_3, - /// - /// - /// - x3_2, - /// - /// - /// - x4_5, - /// - /// - /// - x5_4, - /// - /// - /// - x9_16, - /// - /// - /// - x9_21, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleRequestAspectRatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleRequestAspectRatio value) - { - return value switch - { - CreateStableImageControlStyleRequestAspectRatio.x16_9 => "16:9", - CreateStableImageControlStyleRequestAspectRatio.x1_1 => "1:1", - CreateStableImageControlStyleRequestAspectRatio.x21_9 => "21:9", - CreateStableImageControlStyleRequestAspectRatio.x2_3 => "2:3", - CreateStableImageControlStyleRequestAspectRatio.x3_2 => "3:2", - CreateStableImageControlStyleRequestAspectRatio.x4_5 => "4:5", - CreateStableImageControlStyleRequestAspectRatio.x5_4 => "5:4", - CreateStableImageControlStyleRequestAspectRatio.x9_16 => "9:16", - CreateStableImageControlStyleRequestAspectRatio.x9_21 => "9:21", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleRequestAspectRatio? ToEnum(string value) - { - return value switch - { - "16:9" => CreateStableImageControlStyleRequestAspectRatio.x16_9, - "1:1" => CreateStableImageControlStyleRequestAspectRatio.x1_1, - "21:9" => CreateStableImageControlStyleRequestAspectRatio.x21_9, - "2:3" => CreateStableImageControlStyleRequestAspectRatio.x2_3, - "3:2" => CreateStableImageControlStyleRequestAspectRatio.x3_2, - "4:5" => CreateStableImageControlStyleRequestAspectRatio.x4_5, - "5:4" => CreateStableImageControlStyleRequestAspectRatio.x5_4, - "9:16" => CreateStableImageControlStyleRequestAspectRatio.x9_16, - "9:21" => CreateStableImageControlStyleRequestAspectRatio.x9_21, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestStylePreset.g.cs deleted file mode 100644 index 5eb27fb..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageControlStyleRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleRequestStylePreset value) - { - return value switch - { - CreateStableImageControlStyleRequestStylePreset.x3dModel => "3d-model", - CreateStableImageControlStyleRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageControlStyleRequestStylePreset.Anime => "anime", - CreateStableImageControlStyleRequestStylePreset.Cinematic => "cinematic", - CreateStableImageControlStyleRequestStylePreset.ComicBook => "comic-book", - CreateStableImageControlStyleRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageControlStyleRequestStylePreset.Enhance => "enhance", - CreateStableImageControlStyleRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageControlStyleRequestStylePreset.Isometric => "isometric", - CreateStableImageControlStyleRequestStylePreset.LineArt => "line-art", - CreateStableImageControlStyleRequestStylePreset.LowPoly => "low-poly", - CreateStableImageControlStyleRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageControlStyleRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageControlStyleRequestStylePreset.Origami => "origami", - CreateStableImageControlStyleRequestStylePreset.Photographic => "photographic", - CreateStableImageControlStyleRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageControlStyleRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageControlStyleRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageControlStyleRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageControlStyleRequestStylePreset.Anime, - "cinematic" => CreateStableImageControlStyleRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageControlStyleRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageControlStyleRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageControlStyleRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageControlStyleRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageControlStyleRequestStylePreset.Isometric, - "line-art" => CreateStableImageControlStyleRequestStylePreset.LineArt, - "low-poly" => CreateStableImageControlStyleRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageControlStyleRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageControlStyleRequestStylePreset.NeonPunk, - "origami" => CreateStableImageControlStyleRequestStylePreset.Origami, - "photographic" => CreateStableImageControlStyleRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageControlStyleRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageControlStyleRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.Json.g.cs deleted file mode 100644 index df54f79..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.g.cs deleted file mode 100644 index 8f66c58..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse( - string image, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.Json.g.cs deleted file mode 100644 index 79e6160..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.g.cs deleted file mode 100644 index 5de058c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse2( - string image, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.Json.g.cs deleted file mode 100644 index 36f4cfc..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.g.cs deleted file mode 100644 index 594078c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse3( - string image, - global::StabilityAI.CreateStableImageControlStyleResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.Json.g.cs deleted file mode 100644 index dc35a6e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.g.cs deleted file mode 100644 index f9672c9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.Json.g.cs deleted file mode 100644 index 2b7e373..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.g.cs deleted file mode 100644 index f27e4a7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageControlStyleResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.Json.g.cs deleted file mode 100644 index 73a1b39..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.g.cs deleted file mode 100644 index 45d750b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.Json.g.cs deleted file mode 100644 index 7912a8f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.g.cs deleted file mode 100644 index 0386c6c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageControlStyleResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.Json.g.cs deleted file mode 100644 index 40c00a4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.g.cs deleted file mode 100644 index e718951..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageControlStyleResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason.g.cs deleted file mode 100644 index f5d2003..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleResponseFinishReason value) - { - return value switch - { - CreateStableImageControlStyleResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason2.g.cs deleted file mode 100644 index 7a176e9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleResponseFinishReason2 value) - { - return value switch - { - CreateStableImageControlStyleResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason3.g.cs deleted file mode 100644 index 82836f4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleResponseFinishReason3 value) - { - return value switch - { - CreateStableImageControlStyleResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.Json.g.cs deleted file mode 100644 index 2df05cd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.g.cs deleted file mode 100644 index e701c12..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleTransferResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse( - string image, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.Json.g.cs deleted file mode 100644 index c930af7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.g.cs deleted file mode 100644 index ba4d5fc..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleTransferResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse2( - string image, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.Json.g.cs deleted file mode 100644 index b634bfb..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.g.cs deleted file mode 100644 index d714b96..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleTransferResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageControlStyleTransferResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse3( - string image, - global::StabilityAI.CreateStableImageControlStyleTransferResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.Json.g.cs deleted file mode 100644 index 2d057a7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.g.cs deleted file mode 100644 index 183c089..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleTransferResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.Json.g.cs deleted file mode 100644 index 98b7eb0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.g.cs deleted file mode 100644 index 4884efd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageControlStyleTransferResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.Json.g.cs deleted file mode 100644 index d1f0519..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.g.cs deleted file mode 100644 index 7370851..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageControlStyleTransferResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.Json.g.cs deleted file mode 100644 index f7e1350..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.g.cs deleted file mode 100644 index 8b3c61f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageControlStyleTransferResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.Json.g.cs deleted file mode 100644 index ff6aa69..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageControlStyleTransferResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageControlStyleTransferResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageControlStyleTransferResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageControlStyleTransferResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageControlStyleTransferResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.g.cs deleted file mode 100644 index 33493c7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageControlStyleTransferResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageControlStyleTransferResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageControlStyleTransferResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason.g.cs deleted file mode 100644 index f8b366f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleTransferResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleTransferResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleTransferResponseFinishReason value) - { - return value switch - { - CreateStableImageControlStyleTransferResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleTransferResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleTransferResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleTransferResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleTransferResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs deleted file mode 100644 index 0a67180..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleTransferResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleTransferResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleTransferResponseFinishReason2 value) - { - return value switch - { - CreateStableImageControlStyleTransferResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleTransferResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleTransferResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleTransferResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleTransferResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs deleted file mode 100644 index a664b1e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageControlStyleTransferResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageControlStyleTransferResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageControlStyleTransferResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageControlStyleTransferResponseFinishReason3 value) - { - return value switch - { - CreateStableImageControlStyleTransferResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageControlStyleTransferResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageControlStyleTransferResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageControlStyleTransferResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageControlStyleTransferResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.Json.g.cs deleted file mode 100644 index 58594f2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.g.cs deleted file mode 100644 index 06de71d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditEraseResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditEraseResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse( - string image, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.Json.g.cs deleted file mode 100644 index 9237e3e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.g.cs deleted file mode 100644 index 25d5852..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditEraseResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse2( - string image, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.Json.g.cs deleted file mode 100644 index d65cab6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.g.cs deleted file mode 100644 index 7318193..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditEraseResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditEraseResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse3( - string image, - global::StabilityAI.CreateStableImageEditEraseResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.Json.g.cs deleted file mode 100644 index 2c59c05..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.g.cs deleted file mode 100644 index 2c65c5d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditEraseResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.Json.g.cs deleted file mode 100644 index 0f937c5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.g.cs deleted file mode 100644 index 28c1905..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditEraseResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.Json.g.cs deleted file mode 100644 index 9932eeb..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.g.cs deleted file mode 100644 index 400bab5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditEraseResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.Json.g.cs deleted file mode 100644 index 5cb36e6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditEraseResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditEraseResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditEraseResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditEraseResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditEraseResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditEraseResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.g.cs deleted file mode 100644 index 6459e81..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditEraseResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditEraseResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditEraseResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason.g.cs deleted file mode 100644 index 4de614c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditEraseResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditEraseResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditEraseResponseFinishReason value) - { - return value switch - { - CreateStableImageEditEraseResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditEraseResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditEraseResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditEraseResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditEraseResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason2.g.cs deleted file mode 100644 index dc2f10e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditEraseResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditEraseResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditEraseResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditEraseResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditEraseResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditEraseResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditEraseResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditEraseResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason3.g.cs deleted file mode 100644 index 460ebbe..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditEraseResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditEraseResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditEraseResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditEraseResponseFinishReason3 value) - { - return value switch - { - CreateStableImageEditEraseResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditEraseResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditEraseResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditEraseResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageEditEraseResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequest.g.cs index 532355e..cc8182b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequest.g.cs @@ -125,8 +125,8 @@ public sealed partial class CreateStableImageEditInpaintRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -231,7 +231,7 @@ public CreateStableImageEditInpaintRequest( double? growMask, double? seed, global::StabilityAI.CreateStableImageEditInpaintRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageEditInpaintRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequestStylePreset.g.cs deleted file mode 100644 index 7429779..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageEditInpaintRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditInpaintRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditInpaintRequestStylePreset value) - { - return value switch - { - CreateStableImageEditInpaintRequestStylePreset.x3dModel => "3d-model", - CreateStableImageEditInpaintRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageEditInpaintRequestStylePreset.Anime => "anime", - CreateStableImageEditInpaintRequestStylePreset.Cinematic => "cinematic", - CreateStableImageEditInpaintRequestStylePreset.ComicBook => "comic-book", - CreateStableImageEditInpaintRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageEditInpaintRequestStylePreset.Enhance => "enhance", - CreateStableImageEditInpaintRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageEditInpaintRequestStylePreset.Isometric => "isometric", - CreateStableImageEditInpaintRequestStylePreset.LineArt => "line-art", - CreateStableImageEditInpaintRequestStylePreset.LowPoly => "low-poly", - CreateStableImageEditInpaintRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageEditInpaintRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageEditInpaintRequestStylePreset.Origami => "origami", - CreateStableImageEditInpaintRequestStylePreset.Photographic => "photographic", - CreateStableImageEditInpaintRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageEditInpaintRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditInpaintRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageEditInpaintRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageEditInpaintRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageEditInpaintRequestStylePreset.Anime, - "cinematic" => CreateStableImageEditInpaintRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageEditInpaintRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageEditInpaintRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageEditInpaintRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageEditInpaintRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageEditInpaintRequestStylePreset.Isometric, - "line-art" => CreateStableImageEditInpaintRequestStylePreset.LineArt, - "low-poly" => CreateStableImageEditInpaintRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageEditInpaintRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageEditInpaintRequestStylePreset.NeonPunk, - "origami" => CreateStableImageEditInpaintRequestStylePreset.Origami, - "photographic" => CreateStableImageEditInpaintRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageEditInpaintRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageEditInpaintRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.Json.g.cs deleted file mode 100644 index ae6ac30..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.g.cs deleted file mode 100644 index 4f48894..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditInpaintResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse( - string image, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.Json.g.cs deleted file mode 100644 index 0f54e50..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.g.cs deleted file mode 100644 index 35f23f4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditInpaintResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse2( - string image, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.Json.g.cs deleted file mode 100644 index 487311c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.g.cs deleted file mode 100644 index d0f3b1f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditInpaintResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditInpaintResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse3( - string image, - global::StabilityAI.CreateStableImageEditInpaintResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.Json.g.cs deleted file mode 100644 index 9d44438..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.g.cs deleted file mode 100644 index 9e87929..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditInpaintResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.Json.g.cs deleted file mode 100644 index afa6b49..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.g.cs deleted file mode 100644 index 232d9d3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditInpaintResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.Json.g.cs deleted file mode 100644 index 309c4d2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.g.cs deleted file mode 100644 index 304fec1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditInpaintResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.Json.g.cs deleted file mode 100644 index f5b4f7b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.g.cs deleted file mode 100644 index 0890887..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditInpaintResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.Json.g.cs deleted file mode 100644 index 79e6195..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditInpaintResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditInpaintResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditInpaintResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditInpaintResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditInpaintResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditInpaintResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.g.cs deleted file mode 100644 index 261e4f2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditInpaintResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditInpaintResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditInpaintResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason.g.cs deleted file mode 100644 index 226245a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditInpaintResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditInpaintResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditInpaintResponseFinishReason value) - { - return value switch - { - CreateStableImageEditInpaintResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditInpaintResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditInpaintResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditInpaintResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditInpaintResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason2.g.cs deleted file mode 100644 index 05e86c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditInpaintResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditInpaintResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditInpaintResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditInpaintResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditInpaintResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditInpaintResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditInpaintResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditInpaintResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason3.g.cs deleted file mode 100644 index 5d17cbf..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditInpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditInpaintResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditInpaintResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditInpaintResponseFinishReason3 value) - { - return value switch - { - CreateStableImageEditInpaintResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditInpaintResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditInpaintResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditInpaintResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageEditInpaintResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequest.g.cs index 6989b54..b1299cf 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequest.g.cs @@ -107,8 +107,8 @@ public sealed partial class CreateStableImageEditOutpaintRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -193,7 +193,7 @@ public CreateStableImageEditOutpaintRequest( string? prompt, double? seed, global::StabilityAI.CreateStableImageEditOutpaintRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageEditOutpaintRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequestStylePreset.g.cs deleted file mode 100644 index 5287442..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageEditOutpaintRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditOutpaintRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditOutpaintRequestStylePreset value) - { - return value switch - { - CreateStableImageEditOutpaintRequestStylePreset.x3dModel => "3d-model", - CreateStableImageEditOutpaintRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageEditOutpaintRequestStylePreset.Anime => "anime", - CreateStableImageEditOutpaintRequestStylePreset.Cinematic => "cinematic", - CreateStableImageEditOutpaintRequestStylePreset.ComicBook => "comic-book", - CreateStableImageEditOutpaintRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageEditOutpaintRequestStylePreset.Enhance => "enhance", - CreateStableImageEditOutpaintRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageEditOutpaintRequestStylePreset.Isometric => "isometric", - CreateStableImageEditOutpaintRequestStylePreset.LineArt => "line-art", - CreateStableImageEditOutpaintRequestStylePreset.LowPoly => "low-poly", - CreateStableImageEditOutpaintRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageEditOutpaintRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageEditOutpaintRequestStylePreset.Origami => "origami", - CreateStableImageEditOutpaintRequestStylePreset.Photographic => "photographic", - CreateStableImageEditOutpaintRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageEditOutpaintRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditOutpaintRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageEditOutpaintRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageEditOutpaintRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageEditOutpaintRequestStylePreset.Anime, - "cinematic" => CreateStableImageEditOutpaintRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageEditOutpaintRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageEditOutpaintRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageEditOutpaintRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageEditOutpaintRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageEditOutpaintRequestStylePreset.Isometric, - "line-art" => CreateStableImageEditOutpaintRequestStylePreset.LineArt, - "low-poly" => CreateStableImageEditOutpaintRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageEditOutpaintRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageEditOutpaintRequestStylePreset.NeonPunk, - "origami" => CreateStableImageEditOutpaintRequestStylePreset.Origami, - "photographic" => CreateStableImageEditOutpaintRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageEditOutpaintRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageEditOutpaintRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.Json.g.cs deleted file mode 100644 index 2021b66..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.g.cs deleted file mode 100644 index 1d4539f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditOutpaintResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse( - string image, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.Json.g.cs deleted file mode 100644 index 93c290b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.g.cs deleted file mode 100644 index e994ec3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditOutpaintResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse2( - string image, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.Json.g.cs deleted file mode 100644 index f33da24..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.g.cs deleted file mode 100644 index a11d7f1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditOutpaintResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditOutpaintResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse3( - string image, - global::StabilityAI.CreateStableImageEditOutpaintResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.Json.g.cs deleted file mode 100644 index d38fdb8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.g.cs deleted file mode 100644 index 009f6f8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditOutpaintResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.Json.g.cs deleted file mode 100644 index 5177af4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.g.cs deleted file mode 100644 index 88e1d82..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditOutpaintResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.Json.g.cs deleted file mode 100644 index cd92651..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.g.cs deleted file mode 100644 index 5e9bea8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditOutpaintResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.Json.g.cs deleted file mode 100644 index 0e27466..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.g.cs deleted file mode 100644 index 11ce599..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditOutpaintResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.Json.g.cs deleted file mode 100644 index bea3003..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditOutpaintResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditOutpaintResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditOutpaintResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditOutpaintResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditOutpaintResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditOutpaintResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.g.cs deleted file mode 100644 index 5f25619..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditOutpaintResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditOutpaintResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditOutpaintResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason.g.cs deleted file mode 100644 index 41e2903..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditOutpaintResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditOutpaintResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditOutpaintResponseFinishReason value) - { - return value switch - { - CreateStableImageEditOutpaintResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditOutpaintResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditOutpaintResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditOutpaintResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditOutpaintResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason2.g.cs deleted file mode 100644 index 5ca7ee3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditOutpaintResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditOutpaintResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditOutpaintResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditOutpaintResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditOutpaintResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditOutpaintResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditOutpaintResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditOutpaintResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason3.g.cs deleted file mode 100644 index dfb7645..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditOutpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditOutpaintResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditOutpaintResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditOutpaintResponseFinishReason3 value) - { - return value switch - { - CreateStableImageEditOutpaintResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditOutpaintResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditOutpaintResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditOutpaintResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageEditOutpaintResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.Json.g.cs deleted file mode 100644 index f142ba0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.g.cs deleted file mode 100644 index 982b933..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse( - string image, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.Json.g.cs deleted file mode 100644 index aa72c72..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.g.cs deleted file mode 100644 index 320b2ee..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditRemoveBackgroundResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse2( - string image, - global::StabilityAI.CreateStableImageEditRemoveBackgroundResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.Json.g.cs deleted file mode 100644 index a7311d3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.g.cs deleted file mode 100644 index 1d4d304..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.Json.g.cs deleted file mode 100644 index 62e6c66..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.g.cs deleted file mode 100644 index 30b9131..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.Json.g.cs deleted file mode 100644 index f01c821..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.g.cs deleted file mode 100644 index 8da33c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.Json.g.cs deleted file mode 100644 index 817c43a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditRemoveBackgroundResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditRemoveBackgroundResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.g.cs deleted file mode 100644 index 54368c1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditRemoveBackgroundResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditRemoveBackgroundResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditRemoveBackgroundResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs deleted file mode 100644 index d975c99..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditRemoveBackgroundResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditRemoveBackgroundResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditRemoveBackgroundResponseFinishReason value) - { - return value switch - { - CreateStableImageEditRemoveBackgroundResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditRemoveBackgroundResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditRemoveBackgroundResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditRemoveBackgroundResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditRemoveBackgroundResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs deleted file mode 100644 index 02507fe..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditRemoveBackgroundResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditRemoveBackgroundResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditRemoveBackgroundResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditRemoveBackgroundResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditRemoveBackgroundResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditRemoveBackgroundResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditRemoveBackgroundResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditRemoveBackgroundResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditRemoveBackgroundResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.Json.g.cs deleted file mode 100644 index a0391c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.g.cs deleted file mode 100644 index 142f967..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse.g.cs +++ /dev/null @@ -1,50 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse( - string id) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.Json.g.cs deleted file mode 100644 index fb78e84..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.g.cs deleted file mode 100644 index 1fca9ec..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.Json.g.cs deleted file mode 100644 index f700697..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.g.cs deleted file mode 100644 index 736e396..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.Json.g.cs deleted file mode 100644 index c63df73..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.g.cs deleted file mode 100644 index d1a8ed1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.Json.g.cs deleted file mode 100644 index aa2040f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.g.cs deleted file mode 100644 index 42fb12d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.Json.g.cs deleted file mode 100644 index 096cc79..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditReplaceBackgroundAndRelightResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.g.cs deleted file mode 100644 index e3ec596..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditReplaceBackgroundAndRelightResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditReplaceBackgroundAndRelightResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditReplaceBackgroundAndRelightResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditReplaceBackgroundAndRelightResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequest.g.cs index eb50339..513b3c3 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequest.g.cs @@ -98,8 +98,8 @@ public sealed partial class CreateStableImageEditSearchAndRecolorRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -179,7 +179,7 @@ public CreateStableImageEditSearchAndRecolorRequest( double? growMask, double? seed, global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageEditSearchAndRecolorRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs deleted file mode 100644 index 5136a7b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageEditSearchAndRecolorRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndRecolorRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndRecolorRequestStylePreset value) - { - return value switch - { - CreateStableImageEditSearchAndRecolorRequestStylePreset.x3dModel => "3d-model", - CreateStableImageEditSearchAndRecolorRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Anime => "anime", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Cinematic => "cinematic", - CreateStableImageEditSearchAndRecolorRequestStylePreset.ComicBook => "comic-book", - CreateStableImageEditSearchAndRecolorRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Enhance => "enhance", - CreateStableImageEditSearchAndRecolorRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Isometric => "isometric", - CreateStableImageEditSearchAndRecolorRequestStylePreset.LineArt => "line-art", - CreateStableImageEditSearchAndRecolorRequestStylePreset.LowPoly => "low-poly", - CreateStableImageEditSearchAndRecolorRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageEditSearchAndRecolorRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Origami => "origami", - CreateStableImageEditSearchAndRecolorRequestStylePreset.Photographic => "photographic", - CreateStableImageEditSearchAndRecolorRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageEditSearchAndRecolorRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndRecolorRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageEditSearchAndRecolorRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageEditSearchAndRecolorRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Anime, - "cinematic" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageEditSearchAndRecolorRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageEditSearchAndRecolorRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageEditSearchAndRecolorRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Isometric, - "line-art" => CreateStableImageEditSearchAndRecolorRequestStylePreset.LineArt, - "low-poly" => CreateStableImageEditSearchAndRecolorRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageEditSearchAndRecolorRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageEditSearchAndRecolorRequestStylePreset.NeonPunk, - "origami" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Origami, - "photographic" => CreateStableImageEditSearchAndRecolorRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageEditSearchAndRecolorRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageEditSearchAndRecolorRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.Json.g.cs deleted file mode 100644 index aac7140..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.g.cs deleted file mode 100644 index f868eaa..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse( - string image, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.Json.g.cs deleted file mode 100644 index 68d9838..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.g.cs deleted file mode 100644 index 4a7a9a3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse2( - string image, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.Json.g.cs deleted file mode 100644 index 920e8e3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.g.cs deleted file mode 100644 index 52879e2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndRecolorResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse3( - string image, - global::StabilityAI.CreateStableImageEditSearchAndRecolorResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.Json.g.cs deleted file mode 100644 index 2ec447b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.g.cs deleted file mode 100644 index f83c744..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.Json.g.cs deleted file mode 100644 index be74f14..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.g.cs deleted file mode 100644 index 334d258..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.Json.g.cs deleted file mode 100644 index bba0e89..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.g.cs deleted file mode 100644 index 583976d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.Json.g.cs deleted file mode 100644 index 2abc753..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.g.cs deleted file mode 100644 index 21df870..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.Json.g.cs deleted file mode 100644 index dd64e14..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndRecolorResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndRecolorResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.g.cs deleted file mode 100644 index 8a2fa73..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditSearchAndRecolorResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndRecolorResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndRecolorResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs deleted file mode 100644 index 4a3bb2c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndRecolorResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndRecolorResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndRecolorResponseFinishReason value) - { - return value switch - { - CreateStableImageEditSearchAndRecolorResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndRecolorResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndRecolorResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndRecolorResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndRecolorResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs deleted file mode 100644 index 09f0130..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndRecolorResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndRecolorResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndRecolorResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditSearchAndRecolorResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndRecolorResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndRecolorResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndRecolorResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndRecolorResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs deleted file mode 100644 index d6760d6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndRecolorResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndRecolorResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndRecolorResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndRecolorResponseFinishReason3 value) - { - return value switch - { - CreateStableImageEditSearchAndRecolorResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndRecolorResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndRecolorResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndRecolorResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndRecolorResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequest.g.cs index c27a0a5..dee7ac9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequest.g.cs @@ -98,8 +98,8 @@ public sealed partial class CreateStableImageEditSearchAndReplaceRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -179,7 +179,7 @@ public CreateStableImageEditSearchAndReplaceRequest( double? growMask, double? seed, global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageEditSearchAndReplaceRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs deleted file mode 100644 index f3ce4a1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageEditSearchAndReplaceRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndReplaceRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndReplaceRequestStylePreset value) - { - return value switch - { - CreateStableImageEditSearchAndReplaceRequestStylePreset.x3dModel => "3d-model", - CreateStableImageEditSearchAndReplaceRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Anime => "anime", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Cinematic => "cinematic", - CreateStableImageEditSearchAndReplaceRequestStylePreset.ComicBook => "comic-book", - CreateStableImageEditSearchAndReplaceRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Enhance => "enhance", - CreateStableImageEditSearchAndReplaceRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Isometric => "isometric", - CreateStableImageEditSearchAndReplaceRequestStylePreset.LineArt => "line-art", - CreateStableImageEditSearchAndReplaceRequestStylePreset.LowPoly => "low-poly", - CreateStableImageEditSearchAndReplaceRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageEditSearchAndReplaceRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Origami => "origami", - CreateStableImageEditSearchAndReplaceRequestStylePreset.Photographic => "photographic", - CreateStableImageEditSearchAndReplaceRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageEditSearchAndReplaceRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndReplaceRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageEditSearchAndReplaceRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageEditSearchAndReplaceRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Anime, - "cinematic" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageEditSearchAndReplaceRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageEditSearchAndReplaceRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageEditSearchAndReplaceRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Isometric, - "line-art" => CreateStableImageEditSearchAndReplaceRequestStylePreset.LineArt, - "low-poly" => CreateStableImageEditSearchAndReplaceRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageEditSearchAndReplaceRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageEditSearchAndReplaceRequestStylePreset.NeonPunk, - "origami" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Origami, - "photographic" => CreateStableImageEditSearchAndReplaceRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageEditSearchAndReplaceRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageEditSearchAndReplaceRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.Json.g.cs deleted file mode 100644 index 70e26c8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.g.cs deleted file mode 100644 index 474ac05..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse( - string image, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.Json.g.cs deleted file mode 100644 index 6a1d938..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.g.cs deleted file mode 100644 index 176e40d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse2( - string image, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.Json.g.cs deleted file mode 100644 index c3598a0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.g.cs deleted file mode 100644 index 9f1ef87..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageEditSearchAndReplaceResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse3( - string image, - global::StabilityAI.CreateStableImageEditSearchAndReplaceResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.Json.g.cs deleted file mode 100644 index ba1e75a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.g.cs deleted file mode 100644 index 9f2a5c8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.Json.g.cs deleted file mode 100644 index e91473c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.g.cs deleted file mode 100644 index 766f989..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.Json.g.cs deleted file mode 100644 index dc17974..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.g.cs deleted file mode 100644 index 158db48..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.Json.g.cs deleted file mode 100644 index 23e30b6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.g.cs deleted file mode 100644 index 73d36c2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.Json.g.cs deleted file mode 100644 index 20a6ba6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageEditSearchAndReplaceResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageEditSearchAndReplaceResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.g.cs deleted file mode 100644 index c9ec319..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageEditSearchAndReplaceResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageEditSearchAndReplaceResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageEditSearchAndReplaceResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs deleted file mode 100644 index a57c0ec..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndReplaceResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndReplaceResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndReplaceResponseFinishReason value) - { - return value switch - { - CreateStableImageEditSearchAndReplaceResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndReplaceResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndReplaceResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndReplaceResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndReplaceResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs deleted file mode 100644 index c372272..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndReplaceResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndReplaceResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndReplaceResponseFinishReason2 value) - { - return value switch - { - CreateStableImageEditSearchAndReplaceResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndReplaceResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndReplaceResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndReplaceResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndReplaceResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs deleted file mode 100644 index adeefbb..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageEditSearchAndReplaceResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageEditSearchAndReplaceResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageEditSearchAndReplaceResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageEditSearchAndReplaceResponseFinishReason3 value) - { - return value switch - { - CreateStableImageEditSearchAndReplaceResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageEditSearchAndReplaceResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageEditSearchAndReplaceResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageEditSearchAndReplaceResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageEditSearchAndReplaceResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequest.g.cs index 952fd58..2cee109 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequest.g.cs @@ -25,8 +25,8 @@ public sealed partial class CreateStableImageGenerateCoreRequest /// Default Value: 1:1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestAspectRatioJsonConverter))] - public global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? AspectRatio { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AspectRatioJsonConverter))] + public global::StabilityAI.AspectRatio? AspectRatio { get; set; } /// /// A blurb of text describing what you **do not** wish to see in the output image.
@@ -46,8 +46,8 @@ public sealed partial class CreateStableImageGenerateCoreRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Dictates the `content-type` of the generated image.
@@ -98,10 +98,10 @@ public sealed partial class CreateStableImageGenerateCoreRequest #endif public CreateStableImageGenerateCoreRequest( string prompt, - global::StabilityAI.CreateStableImageGenerateCoreRequestAspectRatio? aspectRatio, + global::StabilityAI.AspectRatio? aspectRatio, string? negativePrompt, double? seed, - global::StabilityAI.CreateStableImageGenerateCoreRequestStylePreset? stylePreset, + global::StabilityAI.StylePreset? stylePreset, global::StabilityAI.CreateStableImageGenerateCoreRequestOutputFormat? outputFormat) { this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestAspectRatio.g.cs deleted file mode 100644 index f11ff28..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestAspectRatio.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Controls the aspect ratio of the generated image.
- /// Default Value: 1:1 - ///
- public enum CreateStableImageGenerateCoreRequestAspectRatio - { - /// - /// - /// - x16_9, - /// - /// - /// - x1_1, - /// - /// - /// - x21_9, - /// - /// - /// - x2_3, - /// - /// - /// - x3_2, - /// - /// - /// - x4_5, - /// - /// - /// - x5_4, - /// - /// - /// - x9_16, - /// - /// - /// - x9_21, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateCoreRequestAspectRatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateCoreRequestAspectRatio value) - { - return value switch - { - CreateStableImageGenerateCoreRequestAspectRatio.x16_9 => "16:9", - CreateStableImageGenerateCoreRequestAspectRatio.x1_1 => "1:1", - CreateStableImageGenerateCoreRequestAspectRatio.x21_9 => "21:9", - CreateStableImageGenerateCoreRequestAspectRatio.x2_3 => "2:3", - CreateStableImageGenerateCoreRequestAspectRatio.x3_2 => "3:2", - CreateStableImageGenerateCoreRequestAspectRatio.x4_5 => "4:5", - CreateStableImageGenerateCoreRequestAspectRatio.x5_4 => "5:4", - CreateStableImageGenerateCoreRequestAspectRatio.x9_16 => "9:16", - CreateStableImageGenerateCoreRequestAspectRatio.x9_21 => "9:21", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateCoreRequestAspectRatio? ToEnum(string value) - { - return value switch - { - "16:9" => CreateStableImageGenerateCoreRequestAspectRatio.x16_9, - "1:1" => CreateStableImageGenerateCoreRequestAspectRatio.x1_1, - "21:9" => CreateStableImageGenerateCoreRequestAspectRatio.x21_9, - "2:3" => CreateStableImageGenerateCoreRequestAspectRatio.x2_3, - "3:2" => CreateStableImageGenerateCoreRequestAspectRatio.x3_2, - "4:5" => CreateStableImageGenerateCoreRequestAspectRatio.x4_5, - "5:4" => CreateStableImageGenerateCoreRequestAspectRatio.x5_4, - "9:16" => CreateStableImageGenerateCoreRequestAspectRatio.x9_16, - "9:21" => CreateStableImageGenerateCoreRequestAspectRatio.x9_21, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestStylePreset.g.cs deleted file mode 100644 index e4d83f0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageGenerateCoreRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateCoreRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateCoreRequestStylePreset value) - { - return value switch - { - CreateStableImageGenerateCoreRequestStylePreset.x3dModel => "3d-model", - CreateStableImageGenerateCoreRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageGenerateCoreRequestStylePreset.Anime => "anime", - CreateStableImageGenerateCoreRequestStylePreset.Cinematic => "cinematic", - CreateStableImageGenerateCoreRequestStylePreset.ComicBook => "comic-book", - CreateStableImageGenerateCoreRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageGenerateCoreRequestStylePreset.Enhance => "enhance", - CreateStableImageGenerateCoreRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageGenerateCoreRequestStylePreset.Isometric => "isometric", - CreateStableImageGenerateCoreRequestStylePreset.LineArt => "line-art", - CreateStableImageGenerateCoreRequestStylePreset.LowPoly => "low-poly", - CreateStableImageGenerateCoreRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageGenerateCoreRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageGenerateCoreRequestStylePreset.Origami => "origami", - CreateStableImageGenerateCoreRequestStylePreset.Photographic => "photographic", - CreateStableImageGenerateCoreRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageGenerateCoreRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateCoreRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageGenerateCoreRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageGenerateCoreRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageGenerateCoreRequestStylePreset.Anime, - "cinematic" => CreateStableImageGenerateCoreRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageGenerateCoreRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageGenerateCoreRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageGenerateCoreRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageGenerateCoreRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageGenerateCoreRequestStylePreset.Isometric, - "line-art" => CreateStableImageGenerateCoreRequestStylePreset.LineArt, - "low-poly" => CreateStableImageGenerateCoreRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageGenerateCoreRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageGenerateCoreRequestStylePreset.NeonPunk, - "origami" => CreateStableImageGenerateCoreRequestStylePreset.Origami, - "photographic" => CreateStableImageGenerateCoreRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageGenerateCoreRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageGenerateCoreRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.g.cs deleted file mode 100644 index 58ad29b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateCoreResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse( - string image, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.Json.g.cs deleted file mode 100644 index b0d9062..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateCoreResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateCoreResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.g.cs deleted file mode 100644 index e98e46c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateCoreResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse2( - string image, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.g.cs deleted file mode 100644 index 6b29d3b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateCoreResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateCoreResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse3( - string image, - global::StabilityAI.CreateStableImageGenerateCoreResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.Json.g.cs deleted file mode 100644 index 4f8327e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateCoreResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateCoreResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.g.cs deleted file mode 100644 index 55d38a0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateCoreResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.Json.g.cs deleted file mode 100644 index c946d4e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateCoreResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateCoreResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.g.cs deleted file mode 100644 index 9b172b7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateCoreResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.Json.g.cs deleted file mode 100644 index 1a141b0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateCoreResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateCoreResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.g.cs deleted file mode 100644 index 313e9da..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageGenerateCoreResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.Json.g.cs deleted file mode 100644 index 296471b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateCoreResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateCoreResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.g.cs deleted file mode 100644 index efb82da..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageGenerateCoreResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateCoreResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateCoreResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason.g.cs deleted file mode 100644 index e87f3b5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateCoreResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateCoreResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateCoreResponseFinishReason value) - { - return value switch - { - CreateStableImageGenerateCoreResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateCoreResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateCoreResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateCoreResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateCoreResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason2.g.cs deleted file mode 100644 index 45521f5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateCoreResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateCoreResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateCoreResponseFinishReason2 value) - { - return value switch - { - CreateStableImageGenerateCoreResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateCoreResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateCoreResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateCoreResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateCoreResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason3.g.cs deleted file mode 100644 index 1815462..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateCoreResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateCoreResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateCoreResponseFinishReason3 value) - { - return value switch - { - CreateStableImageGenerateCoreResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateCoreResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateCoreResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateCoreResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateCoreResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Request.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Request.g.cs index 1d7d847..7d76ad6 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Request.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Request.g.cs @@ -9,12 +9,12 @@ namespace StabilityAI public sealed partial class CreateStableImageGenerateSd3Request { /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } + public required global::StabilityAI.AllOf Prompt { get; set; } /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
@@ -104,15 +104,15 @@ public sealed partial class CreateStableImageGenerateSd3Request /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3RequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. + /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("negative_prompt")] - public string? NegativePrompt { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter))] + public global::StabilityAI.AllOf? NegativePrompt { get; set; } /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. @@ -129,10 +129,7 @@ public sealed partial class CreateStableImageGenerateSd3Request /// /// Initializes a new instance of the class. /// - /// - /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
- /// elements, colors, and subjects will lead to better results. - /// + /// /// /// Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:
/// - **text-to-image** requires only the `prompt` parameter
@@ -192,10 +189,7 @@ public sealed partial class CreateStableImageGenerateSd3Request /// /// Guides the image model towards a particular style. /// - /// - /// Keywords of what you **do not** wish to see in the output image.
- /// This is an advanced feature. - /// + /// /// /// How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`. /// @@ -203,7 +197,7 @@ public sealed partial class CreateStableImageGenerateSd3Request [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateStableImageGenerateSd3Request( - string prompt, + global::StabilityAI.AllOf prompt, global::StabilityAI.CreateStableImageGenerateSd3RequestMode? mode, byte[]? image, string? imagename, @@ -212,11 +206,11 @@ public CreateStableImageGenerateSd3Request( global::StabilityAI.CreateStableImageGenerateSd3RequestModel? model, double? seed, global::StabilityAI.CreateStableImageGenerateSd3RequestOutputFormat? outputFormat, - global::StabilityAI.CreateStableImageGenerateSd3RequestStylePreset? stylePreset, - string? negativePrompt, + global::StabilityAI.StylePreset? stylePreset, + global::StabilityAI.AllOf? negativePrompt, double? cfgScale) { - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); + this.Prompt = prompt; this.Mode = mode; this.Image = image; this.Imagename = imagename; diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.Json.g.cs similarity index 88% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.Json.g.cs index aa52cf5..4d94a8d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class CreateStableImageGenerateCoreResponse + public sealed partial class CreateStableImageGenerateSd3RequestNegativePrompt { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse; + typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt), + jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.CreateStableImageGenerateCoreResponse? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.CreateStableImageGenerateCoreResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse; + typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3RequestNegativePrompt; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.g.cs new file mode 100644 index 0000000..66db6b2 --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestNegativePrompt.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// Keywords of what you **do not** wish to see in the output image.
+ /// This is an advanced feature. + ///
+ public sealed partial class CreateStableImageGenerateSd3RequestNegativePrompt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.Json.g.cs similarity index 89% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.Json.g.cs index ab75a79..4d2e9cf 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateCoreResponse3.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class CreateStableImageGenerateCoreResponse3 + public sealed partial class CreateStableImageGenerateSd3RequestPrompt { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse3? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.CreateStableImageGenerateCoreResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateCoreResponse3; + typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt), + jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.CreateStableImageGenerateCoreResponse3? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.CreateStableImageGenerateCoreResponse3? FromJson( + public static global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.CreateStableImageGenerateCoreResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateCoreResponse3; + typeof(global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3RequestPrompt; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.g.cs new file mode 100644 index 0000000..969addb --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestPrompt.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// What you wish to see in the output image. A strong, descriptive prompt that clearly defines
+ /// elements, colors, and subjects will lead to better results. + ///
+ public sealed partial class CreateStableImageGenerateSd3RequestPrompt + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestStylePreset.g.cs deleted file mode 100644 index 43417b5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3RequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageGenerateSd3RequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateSd3RequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateSd3RequestStylePreset value) - { - return value switch - { - CreateStableImageGenerateSd3RequestStylePreset.x3dModel => "3d-model", - CreateStableImageGenerateSd3RequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageGenerateSd3RequestStylePreset.Anime => "anime", - CreateStableImageGenerateSd3RequestStylePreset.Cinematic => "cinematic", - CreateStableImageGenerateSd3RequestStylePreset.ComicBook => "comic-book", - CreateStableImageGenerateSd3RequestStylePreset.DigitalArt => "digital-art", - CreateStableImageGenerateSd3RequestStylePreset.Enhance => "enhance", - CreateStableImageGenerateSd3RequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageGenerateSd3RequestStylePreset.Isometric => "isometric", - CreateStableImageGenerateSd3RequestStylePreset.LineArt => "line-art", - CreateStableImageGenerateSd3RequestStylePreset.LowPoly => "low-poly", - CreateStableImageGenerateSd3RequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageGenerateSd3RequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageGenerateSd3RequestStylePreset.Origami => "origami", - CreateStableImageGenerateSd3RequestStylePreset.Photographic => "photographic", - CreateStableImageGenerateSd3RequestStylePreset.PixelArt => "pixel-art", - CreateStableImageGenerateSd3RequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateSd3RequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageGenerateSd3RequestStylePreset.x3dModel, - "analog-film" => CreateStableImageGenerateSd3RequestStylePreset.AnalogFilm, - "anime" => CreateStableImageGenerateSd3RequestStylePreset.Anime, - "cinematic" => CreateStableImageGenerateSd3RequestStylePreset.Cinematic, - "comic-book" => CreateStableImageGenerateSd3RequestStylePreset.ComicBook, - "digital-art" => CreateStableImageGenerateSd3RequestStylePreset.DigitalArt, - "enhance" => CreateStableImageGenerateSd3RequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageGenerateSd3RequestStylePreset.FantasyArt, - "isometric" => CreateStableImageGenerateSd3RequestStylePreset.Isometric, - "line-art" => CreateStableImageGenerateSd3RequestStylePreset.LineArt, - "low-poly" => CreateStableImageGenerateSd3RequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageGenerateSd3RequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageGenerateSd3RequestStylePreset.NeonPunk, - "origami" => CreateStableImageGenerateSd3RequestStylePreset.Origami, - "photographic" => CreateStableImageGenerateSd3RequestStylePreset.Photographic, - "pixel-art" => CreateStableImageGenerateSd3RequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageGenerateSd3RequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.Json.g.cs deleted file mode 100644 index 3cf07a3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.g.cs deleted file mode 100644 index 35d5a61..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateSd3Response - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response( - string image, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.Json.g.cs deleted file mode 100644 index ea77e3f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.g.cs deleted file mode 100644 index b4bdb59..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateSd3Response2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response2( - string image, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.Json.g.cs deleted file mode 100644 index bc573b7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.g.cs deleted file mode 100644 index c6b9b1c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateSd3Response3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateSd3ResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response3( - string image, - global::StabilityAI.CreateStableImageGenerateSd3ResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.Json.g.cs deleted file mode 100644 index 1dc955a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.g.cs deleted file mode 100644 index cc6abb6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateSd3Response4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.Json.g.cs deleted file mode 100644 index 32e38c0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.g.cs deleted file mode 100644 index 6598f55..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageGenerateSd3Response5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.Json.g.cs deleted file mode 100644 index 46f56c5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.g.cs deleted file mode 100644 index a88e1ef..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateSd3Response6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.Json.g.cs deleted file mode 100644 index 58af04e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.g.cs deleted file mode 100644 index 809286d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageGenerateSd3Response7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.Json.g.cs deleted file mode 100644 index 8a059f1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateSd3Response8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateSd3Response8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateSd3Response8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateSd3Response8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateSd3Response8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateSd3Response8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.g.cs deleted file mode 100644 index 5a6da0d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3Response8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageGenerateSd3Response8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateSd3Response8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateSd3Response8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason.g.cs deleted file mode 100644 index 9cad0e9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateSd3ResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateSd3ResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateSd3ResponseFinishReason value) - { - return value switch - { - CreateStableImageGenerateSd3ResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateSd3ResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateSd3ResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateSd3ResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateSd3ResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs deleted file mode 100644 index caf8ae8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateSd3ResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateSd3ResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateSd3ResponseFinishReason2 value) - { - return value switch - { - CreateStableImageGenerateSd3ResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateSd3ResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateSd3ResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateSd3ResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateSd3ResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs deleted file mode 100644 index 2a07666..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateSd3ResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateSd3ResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateSd3ResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateSd3ResponseFinishReason3 value) - { - return value switch - { - CreateStableImageGenerateSd3ResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateSd3ResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateSd3ResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateSd3ResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateSd3ResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequest.g.cs index cc28d9c..c39a901 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequest.g.cs @@ -32,8 +32,8 @@ public sealed partial class CreateStableImageGenerateUltraRequest /// Default Value: 1:1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestAspectRatioJsonConverter))] - public global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? AspectRatio { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AspectRatioJsonConverter))] + public global::StabilityAI.AspectRatio? AspectRatio { get; set; } /// /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
@@ -88,8 +88,8 @@ public sealed partial class CreateStableImageGenerateUltraRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Sometimes referred to as _denoising_, this parameter controls how much influence the
@@ -174,12 +174,12 @@ public sealed partial class CreateStableImageGenerateUltraRequest public CreateStableImageGenerateUltraRequest( string prompt, string? negativePrompt, - global::StabilityAI.CreateStableImageGenerateUltraRequestAspectRatio? aspectRatio, + global::StabilityAI.AspectRatio? aspectRatio, double? seed, global::StabilityAI.CreateStableImageGenerateUltraRequestOutputFormat? outputFormat, byte[]? image, string? imagename, - global::StabilityAI.CreateStableImageGenerateUltraRequestStylePreset? stylePreset, + global::StabilityAI.StylePreset? stylePreset, double? strength) { this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestAspectRatio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestAspectRatio.g.cs deleted file mode 100644 index 8200b69..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestAspectRatio.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Controls the aspect ratio of the generated image.
- /// Default Value: 1:1 - ///
- public enum CreateStableImageGenerateUltraRequestAspectRatio - { - /// - /// - /// - x16_9, - /// - /// - /// - x1_1, - /// - /// - /// - x21_9, - /// - /// - /// - x2_3, - /// - /// - /// - x3_2, - /// - /// - /// - x4_5, - /// - /// - /// - x5_4, - /// - /// - /// - x9_16, - /// - /// - /// - x9_21, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateUltraRequestAspectRatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateUltraRequestAspectRatio value) - { - return value switch - { - CreateStableImageGenerateUltraRequestAspectRatio.x16_9 => "16:9", - CreateStableImageGenerateUltraRequestAspectRatio.x1_1 => "1:1", - CreateStableImageGenerateUltraRequestAspectRatio.x21_9 => "21:9", - CreateStableImageGenerateUltraRequestAspectRatio.x2_3 => "2:3", - CreateStableImageGenerateUltraRequestAspectRatio.x3_2 => "3:2", - CreateStableImageGenerateUltraRequestAspectRatio.x4_5 => "4:5", - CreateStableImageGenerateUltraRequestAspectRatio.x5_4 => "5:4", - CreateStableImageGenerateUltraRequestAspectRatio.x9_16 => "9:16", - CreateStableImageGenerateUltraRequestAspectRatio.x9_21 => "9:21", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateUltraRequestAspectRatio? ToEnum(string value) - { - return value switch - { - "16:9" => CreateStableImageGenerateUltraRequestAspectRatio.x16_9, - "1:1" => CreateStableImageGenerateUltraRequestAspectRatio.x1_1, - "21:9" => CreateStableImageGenerateUltraRequestAspectRatio.x21_9, - "2:3" => CreateStableImageGenerateUltraRequestAspectRatio.x2_3, - "3:2" => CreateStableImageGenerateUltraRequestAspectRatio.x3_2, - "4:5" => CreateStableImageGenerateUltraRequestAspectRatio.x4_5, - "5:4" => CreateStableImageGenerateUltraRequestAspectRatio.x5_4, - "9:16" => CreateStableImageGenerateUltraRequestAspectRatio.x9_16, - "9:21" => CreateStableImageGenerateUltraRequestAspectRatio.x9_21, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestStylePreset.g.cs deleted file mode 100644 index 4bc99d1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageGenerateUltraRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateUltraRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateUltraRequestStylePreset value) - { - return value switch - { - CreateStableImageGenerateUltraRequestStylePreset.x3dModel => "3d-model", - CreateStableImageGenerateUltraRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageGenerateUltraRequestStylePreset.Anime => "anime", - CreateStableImageGenerateUltraRequestStylePreset.Cinematic => "cinematic", - CreateStableImageGenerateUltraRequestStylePreset.ComicBook => "comic-book", - CreateStableImageGenerateUltraRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageGenerateUltraRequestStylePreset.Enhance => "enhance", - CreateStableImageGenerateUltraRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageGenerateUltraRequestStylePreset.Isometric => "isometric", - CreateStableImageGenerateUltraRequestStylePreset.LineArt => "line-art", - CreateStableImageGenerateUltraRequestStylePreset.LowPoly => "low-poly", - CreateStableImageGenerateUltraRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageGenerateUltraRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageGenerateUltraRequestStylePreset.Origami => "origami", - CreateStableImageGenerateUltraRequestStylePreset.Photographic => "photographic", - CreateStableImageGenerateUltraRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageGenerateUltraRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateUltraRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageGenerateUltraRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageGenerateUltraRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageGenerateUltraRequestStylePreset.Anime, - "cinematic" => CreateStableImageGenerateUltraRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageGenerateUltraRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageGenerateUltraRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageGenerateUltraRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageGenerateUltraRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageGenerateUltraRequestStylePreset.Isometric, - "line-art" => CreateStableImageGenerateUltraRequestStylePreset.LineArt, - "low-poly" => CreateStableImageGenerateUltraRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageGenerateUltraRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageGenerateUltraRequestStylePreset.NeonPunk, - "origami" => CreateStableImageGenerateUltraRequestStylePreset.Origami, - "photographic" => CreateStableImageGenerateUltraRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageGenerateUltraRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageGenerateUltraRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.Json.g.cs deleted file mode 100644 index 8ccdbc6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.g.cs deleted file mode 100644 index 20d5e4b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateUltraResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse( - string image, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.Json.g.cs deleted file mode 100644 index a5dc6b0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.g.cs deleted file mode 100644 index 76748a1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateUltraResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse2( - string image, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.Json.g.cs deleted file mode 100644 index 251c709..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.g.cs deleted file mode 100644 index 66c2992..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateUltraResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageGenerateUltraResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse3( - string image, - global::StabilityAI.CreateStableImageGenerateUltraResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.Json.g.cs deleted file mode 100644 index e82b6f7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.g.cs deleted file mode 100644 index 74dbebd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateUltraResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.Json.g.cs deleted file mode 100644 index 5f3d168..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.g.cs deleted file mode 100644 index d65a11b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageGenerateUltraResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.Json.g.cs deleted file mode 100644 index 70067c9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.g.cs deleted file mode 100644 index a8b7e2f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageGenerateUltraResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.Json.g.cs deleted file mode 100644 index 921abd8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.g.cs deleted file mode 100644 index 3c66b3c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageGenerateUltraResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.Json.g.cs deleted file mode 100644 index 8c57368..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageGenerateUltraResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageGenerateUltraResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageGenerateUltraResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageGenerateUltraResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageGenerateUltraResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageGenerateUltraResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.g.cs deleted file mode 100644 index f062e64..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageGenerateUltraResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageGenerateUltraResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageGenerateUltraResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason.g.cs deleted file mode 100644 index 4a8c3d0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateUltraResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateUltraResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateUltraResponseFinishReason value) - { - return value switch - { - CreateStableImageGenerateUltraResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateUltraResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateUltraResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateUltraResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateUltraResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason2.g.cs deleted file mode 100644 index 8d3e549..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateUltraResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateUltraResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateUltraResponseFinishReason2 value) - { - return value switch - { - CreateStableImageGenerateUltraResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateUltraResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateUltraResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateUltraResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateUltraResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason3.g.cs deleted file mode 100644 index 44df50c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageGenerateUltraResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageGenerateUltraResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageGenerateUltraResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageGenerateUltraResponseFinishReason3 value) - { - return value switch - { - CreateStableImageGenerateUltraResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageGenerateUltraResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageGenerateUltraResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageGenerateUltraResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageGenerateUltraResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.Json.g.cs deleted file mode 100644 index f0b4726..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.g.cs deleted file mode 100644 index 51aa8f3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse( - string image, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.Json.g.cs deleted file mode 100644 index 10cffae..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.g.cs deleted file mode 100644 index 8429965..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse2( - string image, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.Json.g.cs deleted file mode 100644 index d245ed9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.g.cs deleted file mode 100644 index 4f4ce19..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse3( - string image, - global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.Json.g.cs deleted file mode 100644 index 345c14d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.g.cs deleted file mode 100644 index f509162..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.Json.g.cs deleted file mode 100644 index 5f98d0a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.g.cs deleted file mode 100644 index 3d11d07..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.Json.g.cs deleted file mode 100644 index 75ef779..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.g.cs deleted file mode 100644 index 578b3e7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.Json.g.cs deleted file mode 100644 index 3ca95a0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.g.cs deleted file mode 100644 index 03916ef..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.Json.g.cs deleted file mode 100644 index 0c54c93..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleConservativeResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleConservativeResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.g.cs deleted file mode 100644 index 8a476ca..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageUpscaleConservativeResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleConservativeResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleConservativeResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs deleted file mode 100644 index ca039d8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleConservativeResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleConservativeResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleConservativeResponseFinishReason value) - { - return value switch - { - CreateStableImageUpscaleConservativeResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleConservativeResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleConservativeResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleConservativeResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleConservativeResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs deleted file mode 100644 index 6fd142a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleConservativeResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleConservativeResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleConservativeResponseFinishReason2 value) - { - return value switch - { - CreateStableImageUpscaleConservativeResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleConservativeResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleConservativeResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleConservativeResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleConservativeResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs deleted file mode 100644 index d93858f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleConservativeResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleConservativeResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleConservativeResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleConservativeResponseFinishReason3 value) - { - return value switch - { - CreateStableImageUpscaleConservativeResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleConservativeResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleConservativeResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleConservativeResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleConservativeResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequest.g.cs index 887c4e9..c8697b5 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequest.g.cs @@ -86,8 +86,8 @@ public sealed partial class CreateStableImageUpscaleCreativeRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -159,7 +159,7 @@ public CreateStableImageUpscaleCreativeRequest( global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat, double? seed, double? creativity, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs deleted file mode 100644 index 16e1548..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateStableImageUpscaleCreativeRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleCreativeRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleCreativeRequestStylePreset value) - { - return value switch - { - CreateStableImageUpscaleCreativeRequestStylePreset.x3dModel => "3d-model", - CreateStableImageUpscaleCreativeRequestStylePreset.AnalogFilm => "analog-film", - CreateStableImageUpscaleCreativeRequestStylePreset.Anime => "anime", - CreateStableImageUpscaleCreativeRequestStylePreset.Cinematic => "cinematic", - CreateStableImageUpscaleCreativeRequestStylePreset.ComicBook => "comic-book", - CreateStableImageUpscaleCreativeRequestStylePreset.DigitalArt => "digital-art", - CreateStableImageUpscaleCreativeRequestStylePreset.Enhance => "enhance", - CreateStableImageUpscaleCreativeRequestStylePreset.FantasyArt => "fantasy-art", - CreateStableImageUpscaleCreativeRequestStylePreset.Isometric => "isometric", - CreateStableImageUpscaleCreativeRequestStylePreset.LineArt => "line-art", - CreateStableImageUpscaleCreativeRequestStylePreset.LowPoly => "low-poly", - CreateStableImageUpscaleCreativeRequestStylePreset.ModelingCompound => "modeling-compound", - CreateStableImageUpscaleCreativeRequestStylePreset.NeonPunk => "neon-punk", - CreateStableImageUpscaleCreativeRequestStylePreset.Origami => "origami", - CreateStableImageUpscaleCreativeRequestStylePreset.Photographic => "photographic", - CreateStableImageUpscaleCreativeRequestStylePreset.PixelArt => "pixel-art", - CreateStableImageUpscaleCreativeRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleCreativeRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateStableImageUpscaleCreativeRequestStylePreset.x3dModel, - "analog-film" => CreateStableImageUpscaleCreativeRequestStylePreset.AnalogFilm, - "anime" => CreateStableImageUpscaleCreativeRequestStylePreset.Anime, - "cinematic" => CreateStableImageUpscaleCreativeRequestStylePreset.Cinematic, - "comic-book" => CreateStableImageUpscaleCreativeRequestStylePreset.ComicBook, - "digital-art" => CreateStableImageUpscaleCreativeRequestStylePreset.DigitalArt, - "enhance" => CreateStableImageUpscaleCreativeRequestStylePreset.Enhance, - "fantasy-art" => CreateStableImageUpscaleCreativeRequestStylePreset.FantasyArt, - "isometric" => CreateStableImageUpscaleCreativeRequestStylePreset.Isometric, - "line-art" => CreateStableImageUpscaleCreativeRequestStylePreset.LineArt, - "low-poly" => CreateStableImageUpscaleCreativeRequestStylePreset.LowPoly, - "modeling-compound" => CreateStableImageUpscaleCreativeRequestStylePreset.ModelingCompound, - "neon-punk" => CreateStableImageUpscaleCreativeRequestStylePreset.NeonPunk, - "origami" => CreateStableImageUpscaleCreativeRequestStylePreset.Origami, - "photographic" => CreateStableImageUpscaleCreativeRequestStylePreset.Photographic, - "pixel-art" => CreateStableImageUpscaleCreativeRequestStylePreset.PixelArt, - "tile-texture" => CreateStableImageUpscaleCreativeRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.Json.g.cs deleted file mode 100644 index e5dc509..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleCreativeResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.g.cs deleted file mode 100644 index 03e8f26..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleCreativeResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleCreativeResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleCreativeResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.Json.g.cs deleted file mode 100644 index d29d75e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleCreativeResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.g.cs deleted file mode 100644 index ab90186..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageUpscaleCreativeResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleCreativeResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleCreativeResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.Json.g.cs deleted file mode 100644 index 9e89f6c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleCreativeResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.g.cs deleted file mode 100644 index 49b5b70..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleCreativeResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleCreativeResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleCreativeResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.Json.g.cs deleted file mode 100644 index 30a0d08..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleCreativeResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.g.cs deleted file mode 100644 index 5d55615..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageUpscaleCreativeResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleCreativeResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleCreativeResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.Json.g.cs deleted file mode 100644 index 338b05d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleCreativeResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleCreativeResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.g.cs deleted file mode 100644 index 7ef3277..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleCreativeResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageUpscaleCreativeResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleCreativeResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleCreativeResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.Json.g.cs deleted file mode 100644 index 688172d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.g.cs deleted file mode 100644 index 592eb4d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleFastResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse( - string image, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.Json.g.cs deleted file mode 100644 index 4fd0328..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse2), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.g.cs deleted file mode 100644 index d382e4d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleFastResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse2( - string image, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.Json.g.cs deleted file mode 100644 index a5db667..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse3), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.g.cs deleted file mode 100644 index 90edb54..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleFastResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse3( - string image, - global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.Json.g.cs deleted file mode 100644 index 92e718c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse4), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.g.cs deleted file mode 100644 index 74ac903..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleFastResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.Json.g.cs deleted file mode 100644 index 55fe755..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse5), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.g.cs deleted file mode 100644 index a94eed9..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"4212a4b66fbe1cedca4bf2133d35dca5","name":"payload_too_large","errors":["body: payloads cannot be larger than 10MiB in size"]} - /// - public sealed partial class CreateStableImageUpscaleFastResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.Json.g.cs deleted file mode 100644 index 71b9d23..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse6), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.g.cs deleted file mode 100644 index 415c7f7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateStableImageUpscaleFastResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.Json.g.cs deleted file mode 100644 index 9c55550..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse7), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.g.cs deleted file mode 100644 index 571d62d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"rate_limit_exceeded","name":"rate_limit_exceeded","errors":["You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds."]} - /// - public sealed partial class CreateStableImageUpscaleFastResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.Json.g.cs deleted file mode 100644 index d45c2a2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateStableImageUpscaleFastResponse8 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse8? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse8), - jsonSerializerContext) as global::StabilityAI.CreateStableImageUpscaleFastResponse8; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateStableImageUpscaleFastResponse8? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateStableImageUpscaleFastResponse8? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse8), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateStableImageUpscaleFastResponse8; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.g.cs deleted file mode 100644 index d07822a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponse8.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateStableImageUpscaleFastResponse8 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateStableImageUpscaleFastResponse8( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateStableImageUpscaleFastResponse8() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason.g.cs deleted file mode 100644 index 9c12ea4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleFastResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleFastResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleFastResponseFinishReason value) - { - return value switch - { - CreateStableImageUpscaleFastResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleFastResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleFastResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleFastResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleFastResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason2.g.cs deleted file mode 100644 index 690adee..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleFastResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleFastResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleFastResponseFinishReason2 value) - { - return value switch - { - CreateStableImageUpscaleFastResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleFastResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleFastResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleFastResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleFastResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason3.g.cs deleted file mode 100644 index 8924228..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateStableImageUpscaleFastResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateStableImageUpscaleFastResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateStableImageUpscaleFastResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateStableImageUpscaleFastResponseFinishReason3 value) - { - return value switch - { - CreateStableImageUpscaleFastResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateStableImageUpscaleFastResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateStableImageUpscaleFastResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateStableImageUpscaleFastResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateStableImageUpscaleFastResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.Json.g.cs deleted file mode 100644 index d56869b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.g.cs deleted file mode 100644 index 9b7ace1..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageInpaintResponse( - string image, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageInpaintResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.Json.g.cs deleted file mode 100644 index d3e5991..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.g.cs deleted file mode 100644 index 04a0b98..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageInpaintResponse2( - string image, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageInpaintResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.Json.g.cs deleted file mode 100644 index d59d243..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.g.cs deleted file mode 100644 index 4c79299..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageInpaintResponse3( - string image, - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageInpaintResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.Json.g.cs deleted file mode 100644 index 7b6c351..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.g.cs deleted file mode 100644 index 2f38d69..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageInpaintResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageInpaintResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.Json.g.cs deleted file mode 100644 index aa1b589..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.g.cs deleted file mode 100644 index d54ecfd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateV2alphaGenerationStableImageInpaintResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageInpaintResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageInpaintResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs deleted file mode 100644 index 22e5e9c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateV2alphaGenerationStableImageInpaintResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateV2alphaGenerationStableImageInpaintResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateV2alphaGenerationStableImageInpaintResponseFinishReason value) - { - return value switch - { - CreateV2alphaGenerationStableImageInpaintResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - CreateV2alphaGenerationStableImageInpaintResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateV2alphaGenerationStableImageInpaintResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason.ContentFiltered, - "SUCCESS" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs deleted file mode 100644 index aeeffe6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateV2alphaGenerationStableImageInpaintResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateV2alphaGenerationStableImageInpaintResponseFinishReason2 value) - { - return value switch - { - CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateV2alphaGenerationStableImageInpaintResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.ContentFiltered, - "SUCCESS" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs deleted file mode 100644 index 3b0d665..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateV2alphaGenerationStableImageInpaintResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateV2alphaGenerationStableImageInpaintResponseFinishReason3 value) - { - return value switch - { - CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateV2alphaGenerationStableImageInpaintResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.ContentFiltered, - "SUCCESS" => CreateV2alphaGenerationStableImageInpaintResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequest.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequest.g.cs index a269b7e..c1ae9ca 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequest.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequest.g.cs @@ -86,8 +86,8 @@ public sealed partial class CreateV2alphaGenerationStableImageUpscaleRequest /// Guides the image model towards a particular style. ///
[global::System.Text.Json.Serialization.JsonPropertyName("style_preset")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetJsonConverter))] - public global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? StylePreset { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.StylePresetJsonConverter))] + public global::StabilityAI.StylePreset? StylePreset { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -159,7 +159,7 @@ public CreateV2alphaGenerationStableImageUpscaleRequest( global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat, double? seed, double? creativity, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset) + global::StabilityAI.StylePreset? stylePreset) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Imagename = imagename ?? throw new global::System.ArgumentNullException(nameof(imagename)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs deleted file mode 100644 index ed06f37..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Guides the image model towards a particular style. - /// - public enum CreateV2alphaGenerationStableImageUpscaleRequestStylePreset - { - /// - /// - /// - x3dModel, - /// - /// - /// - AnalogFilm, - /// - /// - /// - Anime, - /// - /// - /// - Cinematic, - /// - /// - /// - ComicBook, - /// - /// - /// - DigitalArt, - /// - /// - /// - Enhance, - /// - /// - /// - FantasyArt, - /// - /// - /// - Isometric, - /// - /// - /// - LineArt, - /// - /// - /// - LowPoly, - /// - /// - /// - ModelingCompound, - /// - /// - /// - NeonPunk, - /// - /// - /// - Origami, - /// - /// - /// - Photographic, - /// - /// - /// - PixelArt, - /// - /// - /// - TileTexture, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class CreateV2alphaGenerationStableImageUpscaleRequestStylePresetExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this CreateV2alphaGenerationStableImageUpscaleRequestStylePreset value) - { - return value switch - { - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.x3dModel => "3d-model", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.AnalogFilm => "analog-film", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Anime => "anime", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Cinematic => "cinematic", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.ComicBook => "comic-book", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.DigitalArt => "digital-art", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Enhance => "enhance", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.FantasyArt => "fantasy-art", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Isometric => "isometric", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.LineArt => "line-art", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.LowPoly => "low-poly", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.ModelingCompound => "modeling-compound", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.NeonPunk => "neon-punk", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Origami => "origami", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Photographic => "photographic", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.PixelArt => "pixel-art", - CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.TileTexture => "tile-texture", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? ToEnum(string value) - { - return value switch - { - "3d-model" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.x3dModel, - "analog-film" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.AnalogFilm, - "anime" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Anime, - "cinematic" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Cinematic, - "comic-book" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.ComicBook, - "digital-art" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.DigitalArt, - "enhance" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Enhance, - "fantasy-art" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.FantasyArt, - "isometric" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Isometric, - "line-art" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.LineArt, - "low-poly" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.LowPoly, - "modeling-compound" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.ModelingCompound, - "neon-punk" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.NeonPunk, - "origami" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Origami, - "photographic" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.Photographic, - "pixel-art" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.PixelArt, - "tile-texture" => CreateV2alphaGenerationStableImageUpscaleRequestStylePreset.TileTexture, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.Json.g.cs deleted file mode 100644 index 4d7a8fe..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.g.cs deleted file mode 100644 index bc7a37e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse.g.cs +++ /dev/null @@ -1,50 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageUpscaleResponse( - string id) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageUpscaleResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.Json.g.cs deleted file mode 100644 index 372f331..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.g.cs deleted file mode 100644 index d54c6df..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse2.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse2 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageUpscaleResponse2( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageUpscaleResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.Json.g.cs deleted file mode 100644 index 6bb9f32..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3), - jsonSerializerContext) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.g.cs deleted file mode 100644 index 707cc7e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.CreateV2alphaGenerationStableImageUpscaleResponse3.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class CreateV2alphaGenerationStableImageUpscaleResponse3 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CreateV2alphaGenerationStableImageUpscaleResponse3( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public CreateV2alphaGenerationStableImageUpscaleResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.Error.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.Error.g.cs index 6075ae5..ffc6bf4 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.Error.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.Error.g.cs @@ -9,16 +9,17 @@ namespace StabilityAI public sealed partial class Error { /// - /// A unique identifier for this particular occurrence of the problem.
- /// Example: 296a972f-666a-44a1-a3df-c9c28a1f56c0 + /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
+ /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
+ /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 ///
- /// 296a972f-666a-44a1-a3df-c9c28a1f56c0 + /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } /// - /// The short-name of this class of errors e.g. `bad_request`.
+ /// Short-hand name for an error, useful for discriminating between errors with the same status code.
/// Example: bad_request ///
/// bad_request @@ -27,13 +28,13 @@ public sealed partial class Error public required string Name { get; set; } /// - /// A human-readable explanation specific to this occurrence of the problem.
- /// Example: Header parameter Authorization is required, but not found + /// One or more error messages indicating what went wrong.
+ /// Example: [some-field: is required] ///
- /// Header parameter Authorization is required, but not found - [global::System.Text.Json.Serialization.JsonPropertyName("message")] + /// [some-field: is required] + [global::System.Text.Json.Serialization.JsonPropertyName("errors")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Message { get; set; } + public required global::System.Collections.Generic.IList Errors { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,16 +46,17 @@ public sealed partial class Error /// Initializes a new instance of the class. /// /// - /// A unique identifier for this particular occurrence of the problem.
- /// Example: 296a972f-666a-44a1-a3df-c9c28a1f56c0 + /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
+ /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
+ /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 /// /// - /// The short-name of this class of errors e.g. `bad_request`.
+ /// Short-hand name for an error, useful for discriminating between errors with the same status code.
/// Example: bad_request /// - /// - /// A human-readable explanation specific to this occurrence of the problem.
- /// Example: Header parameter Authorization is required, but not found + /// + /// One or more error messages indicating what went wrong.
+ /// Example: [some-field: is required] /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -62,11 +64,11 @@ public sealed partial class Error public Error( string id, string name, - string message) + global::System.Collections.Generic.IList errors) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Message = message ?? throw new global::System.ArgumentNullException(nameof(message)); + this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); } /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.g.cs deleted file mode 100644 index e756e86..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FalGenerationResponse.g.cs +++ /dev/null @@ -1,68 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class FalGenerationResponse - { - /// - /// An S3 object URL in the form `s3://bucket/key` pointing to the generated asset.
- /// Internal callers can fetch this object from S3 to download the bytes. `null` when
- /// the output was withheld (e.g. it failed content moderation — see the `finish-reason` header).
- /// Example: s3://stabilityapi-outputs-123456789012-us-west-2/fal/engine/output-id - ///
- /// s3://stabilityapi-outputs-123456789012-us-west-2/fal/engine/output-id - [global::System.Text.Json.Serialization.JsonPropertyName("s3Url")] - public string? S3Url { get; set; } - - /// - /// The MIME type of the generated asset.
- /// Example: image/png - ///
- /// image/png - [global::System.Text.Json.Serialization.JsonPropertyName("contentType")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ContentType { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The MIME type of the generated asset.
- /// Example: image/png - /// - /// - /// An S3 object URL in the form `s3://bucket/key` pointing to the generated asset.
- /// Internal callers can fetch this object from S3 to download the bytes. `null` when
- /// the output was withheld (e.g. it failed content moderation — see the `finish-reason` header).
- /// Example: s3://stabilityapi-outputs-123456789012-us-west-2/fal/engine/output-id - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FalGenerationResponse( - string contentType, - string? s3Url) - { - this.S3Url = s3Url; - this.ContentType = contentType ?? throw new global::System.ArgumentNullException(nameof(contentType)); - } - - /// - /// Initializes a new instance of the class. - /// - public FalGenerationResponse() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse.g.cs index 9212075..16bed5b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse.g.cs @@ -9,31 +9,20 @@ namespace StabilityAI public sealed partial class FetchAudioResultResponse { /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Audio { get; set; } + public required string Id { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// The status of your generation. ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonJsonConverter))] - public global::StabilityAI.FetchAudioResultResponseFinishReason FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseStatusJsonConverter))] + public global::StabilityAI.FetchAudioResultResponseStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,30 +33,22 @@ public sealed partial class FetchAudioResultResponse /// /// Initializes a new instance of the class. /// - /// - /// The generated audio, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 /// - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS + /// + /// The status of your generation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FetchAudioResultResponse( - string audio, - double? seed, - global::StabilityAI.FetchAudioResultResponseFinishReason finishReason) + string id, + global::StabilityAI.FetchAudioResultResponseStatus status) { - this.Audio = audio ?? throw new global::System.ArgumentNullException(nameof(audio)); - this.Seed = seed; - this.FinishReason = finishReason; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; } /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.Json.g.cs deleted file mode 100644 index c310818..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class FetchAudioResultResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.FetchAudioResultResponse2), - jsonSerializerContext) as global::StabilityAI.FetchAudioResultResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.FetchAudioResultResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.FetchAudioResultResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FetchAudioResultResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.Json.g.cs deleted file mode 100644 index b5810b8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class FetchAudioResultResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.FetchAudioResultResponse3), - jsonSerializerContext) as global::StabilityAI.FetchAudioResultResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.FetchAudioResultResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.FetchAudioResultResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FetchAudioResultResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.g.cs deleted file mode 100644 index d59c184..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse3.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class FetchAudioResultResponse3 - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// The status of your generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.FetchAudioResultResponseStatusJsonConverter))] - public global::StabilityAI.FetchAudioResultResponseStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// - /// - /// The status of your generation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchAudioResultResponse3( - string id, - global::StabilityAI.FetchAudioResultResponseStatus status) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public FetchAudioResultResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.Json.g.cs deleted file mode 100644 index 2967c28..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class FetchAudioResultResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.FetchAudioResultResponse4), - jsonSerializerContext) as global::StabilityAI.FetchAudioResultResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.FetchAudioResultResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.FetchAudioResultResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FetchAudioResultResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.g.cs deleted file mode 100644 index a16b76a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse4.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class FetchAudioResultResponse4 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchAudioResultResponse4( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public FetchAudioResultResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.Json.g.cs deleted file mode 100644 index f90c4ca..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class FetchAudioResultResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.FetchAudioResultResponse5), - jsonSerializerContext) as global::StabilityAI.FetchAudioResultResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.FetchAudioResultResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.FetchAudioResultResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FetchAudioResultResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.g.cs deleted file mode 100644 index f7f0e85..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2bca35116bc5431d6dc4b4ea2ef3da2f","name":"generation_not_found","errors":["id: the generation either does not exist or has expired."]} - /// - public sealed partial class FetchAudioResultResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchAudioResultResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public FetchAudioResultResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.Json.g.cs deleted file mode 100644 index 9f3cd77..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class FetchAudioResultResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.FetchAudioResultResponse6), - jsonSerializerContext) as global::StabilityAI.FetchAudioResultResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.FetchAudioResultResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.FetchAudioResultResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.FetchAudioResultResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.FetchAudioResultResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.g.cs deleted file mode 100644 index b8dd891..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class FetchAudioResultResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FetchAudioResultResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public FetchAudioResultResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason2.g.cs deleted file mode 100644 index 56ed2df..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.FetchAudioResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished. It is always `SUCCESS` for this endpoint.
- /// Example: SUCCESS - ///
- public enum FetchAudioResultResponseFinishReason2 - { - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class FetchAudioResultResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this FetchAudioResultResponseFinishReason2 value) - { - return value switch - { - FetchAudioResultResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static FetchAudioResultResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "SUCCESS" => FetchAudioResultResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GenerationRequestOptionalParams.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GenerationRequestOptionalParams.g.cs index f919e6e..df980c8 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GenerationRequestOptionalParams.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.GenerationRequestOptionalParams.g.cs @@ -45,13 +45,11 @@ public sealed partial class GenerationRequestOptionalParams public int? Samples { get; set; } /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 ///
- /// 0 [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public long? Seed { get; set; } + public double? Seed { get; set; } /// /// Number of diffusion steps to run
@@ -90,9 +88,8 @@ public sealed partial class GenerationRequestOptionalParams /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -107,7 +104,7 @@ public GenerationRequestOptionalParams( global::StabilityAI.ClipGuidancePreset? clipGuidancePreset, global::StabilityAI.Sampler? sampler, int? samples, - long? seed, + double? seed, int? steps) { this.CfgScale = cfgScale; diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse.g.cs index e4255ce..81b5aeb 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse.g.cs @@ -9,35 +9,20 @@ namespace StabilityAI public sealed partial class GetResultsResponse { /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] + /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } + public required string Id { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// The status of your generation. ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetResultsResponseFinishReason FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetResultsResponseStatusJsonConverter))] + public global::StabilityAI.GetResultsResponseStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,33 +33,22 @@ public sealed partial class GetResultsResponse /// /// Initializes a new instance of the class. /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS + /// + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// + /// The status of your generation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetResultsResponse( - string image, - global::StabilityAI.GetResultsResponseFinishReason finishReason, - double? seed) + string id, + global::StabilityAI.GetResultsResponseStatus status) { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; } /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.g.cs deleted file mode 100644 index ef7d963..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetResultsResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetResultsResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetResultsResponse2( - string image, - global::StabilityAI.GetResultsResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public GetResultsResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.g.cs deleted file mode 100644 index b423a9f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse4.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetResultsResponse4 - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// The status of your generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetResultsResponseStatusJsonConverter))] - public global::StabilityAI.GetResultsResponseStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// - /// - /// The status of your generation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetResultsResponse4( - string id, - global::StabilityAI.GetResultsResponseStatus status) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public GetResultsResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.g.cs deleted file mode 100644 index bfa551c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetResultsResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetResultsResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetResultsResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.Json.g.cs deleted file mode 100644 index 2e74b95..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetResultsResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetResultsResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetResultsResponse6), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetResultsResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetResultsResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetResultsResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.g.cs deleted file mode 100644 index a9ac9c2..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2bca35116bc5431d6dc4b4ea2ef3da2f","name":"generation_not_found","errors":["id: the generation either does not exist or has expired."]} - /// - public sealed partial class GetResultsResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetResultsResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetResultsResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.Json.g.cs deleted file mode 100644 index c32b8da..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetResultsResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetResultsResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetResultsResponse7), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetResultsResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetResultsResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetResultsResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.g.cs deleted file mode 100644 index 711afbd..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class GetResultsResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetResultsResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetResultsResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason2.g.cs deleted file mode 100644 index ab55f61..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetResultsResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetResultsResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetResultsResponseFinishReason2 value) - { - return value switch - { - GetResultsResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - GetResultsResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetResultsResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetResultsResponseFinishReason2.ContentFiltered, - "SUCCESS" => GetResultsResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason3.g.cs deleted file mode 100644 index 59739a8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetResultsResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetResultsResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetResultsResponseFinishReason3 value) - { - return value switch - { - GetResultsResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - GetResultsResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetResultsResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetResultsResponseFinishReason3.ContentFiltered, - "SUCCESS" => GetResultsResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse.g.cs index 7e55fbf..8345745 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse.g.cs @@ -9,35 +9,20 @@ namespace StabilityAI public sealed partial class GetStableImageUpscaleCreativeResultResponse { /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] + /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } + public required string Id { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// The status of your generation. ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseStatusJsonConverter))] + public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,33 +33,22 @@ public sealed partial class GetStableImageUpscaleCreativeResultResponse /// /// Initializes a new instance of the class. /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS + /// + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// + /// The status of your generation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetStableImageUpscaleCreativeResultResponse( - string image, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason finishReason, - double? seed) + string id, + global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus status) { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; } /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.Json.g.cs deleted file mode 100644 index eebb0c4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.g.cs deleted file mode 100644 index c88067f..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse2( - string image, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.Json.g.cs deleted file mode 100644 index 492ae57..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.g.cs deleted file mode 100644 index f14cc7e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse3( - string image, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.Json.g.cs deleted file mode 100644 index 73cc0e8..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.g.cs deleted file mode 100644 index 7c811b4..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse4.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse4 - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// The status of your generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetStableImageUpscaleCreativeResultResponseStatusJsonConverter))] - public global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// - /// - /// The status of your generation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse4( - string id, - global::StabilityAI.GetStableImageUpscaleCreativeResultResponseStatus status) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.Json.g.cs deleted file mode 100644 index 1104aa7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.g.cs deleted file mode 100644 index 80151af..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.Json.g.cs deleted file mode 100644 index 7e1e8e0..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.g.cs deleted file mode 100644 index fb3249c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2bca35116bc5431d6dc4b4ea2ef3da2f","name":"generation_not_found","errors":["id: the generation either does not exist or has expired."]} - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.Json.g.cs deleted file mode 100644 index 2409077..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetStableImageUpscaleCreativeResultResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7), - jsonSerializerContext) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.g.cs deleted file mode 100644 index ff5a05d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class GetStableImageUpscaleCreativeResultResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetStableImageUpscaleCreativeResultResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetStableImageUpscaleCreativeResultResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs deleted file mode 100644 index 7c5cbc3..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetStableImageUpscaleCreativeResultResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetStableImageUpscaleCreativeResultResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetStableImageUpscaleCreativeResultResponseFinishReason value) - { - return value switch - { - GetStableImageUpscaleCreativeResultResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - GetStableImageUpscaleCreativeResultResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetStableImageUpscaleCreativeResultResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetStableImageUpscaleCreativeResultResponseFinishReason.ContentFiltered, - "SUCCESS" => GetStableImageUpscaleCreativeResultResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs deleted file mode 100644 index 8f8d23c..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetStableImageUpscaleCreativeResultResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetStableImageUpscaleCreativeResultResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetStableImageUpscaleCreativeResultResponseFinishReason2 value) - { - return value switch - { - GetStableImageUpscaleCreativeResultResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - GetStableImageUpscaleCreativeResultResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetStableImageUpscaleCreativeResultResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetStableImageUpscaleCreativeResultResponseFinishReason2.ContentFiltered, - "SUCCESS" => GetStableImageUpscaleCreativeResultResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs deleted file mode 100644 index 5e5f95e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetStableImageUpscaleCreativeResultResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetStableImageUpscaleCreativeResultResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetStableImageUpscaleCreativeResultResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetStableImageUpscaleCreativeResultResponseFinishReason3 value) - { - return value switch - { - GetStableImageUpscaleCreativeResultResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - GetStableImageUpscaleCreativeResultResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetStableImageUpscaleCreativeResultResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetStableImageUpscaleCreativeResultResponseFinishReason3.ContentFiltered, - "SUCCESS" => GetStableImageUpscaleCreativeResultResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse.g.cs index d0abd82..561017d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse.g.cs @@ -9,35 +9,20 @@ namespace StabilityAI public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse { /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] + /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } + public required string Id { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// The status of your generation. ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusJsonConverter))] + public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,33 +33,22 @@ public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse /// /// Initializes a new instance of the class. /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS + /// + /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
+ /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// + /// The status of your generation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetV2alphaGenerationStableImageUpscaleResultResponse( - string image, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason finishReason, - double? seed) + string id, + global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus status) { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Status = status; } /// diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.Json.g.cs deleted file mode 100644 index c9bf2ee..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.g.cs deleted file mode 100644 index 19ecdb5..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse2.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse2 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse2( - string image, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.Json.g.cs deleted file mode 100644 index 098b6a7..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse3 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.g.cs deleted file mode 100644 index 69ac41b..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse3.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse3 - { - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - ///
- /// AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Image { get; set; } - - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - ///
- /// 343940597 - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } - - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- /// SUCCESS - [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3JsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 FinishReason { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The generated image, encoded to base64.
- /// Example: AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1... - /// - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse3( - string image, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 finishReason, - double? seed) - { - this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); - this.Seed = seed; - this.FinishReason = finishReason; - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse3() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.Json.g.cs deleted file mode 100644 index 5fb5f71..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse4 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.g.cs deleted file mode 100644 index 97959de..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse4.g.cs +++ /dev/null @@ -1,62 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse4 - { - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - ///
- /// a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// The status of your generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusJsonConverter))] - public global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.
- /// Example: a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4 - /// - /// - /// The status of your generation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse4( - string id, - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus status) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse4() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.Json.g.cs deleted file mode 100644 index c849356..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse5 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.g.cs deleted file mode 100644 index c3c0cc6..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse5.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse5 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse5( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse5() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.Json.g.cs deleted file mode 100644 index 2c8a768..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse6 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.g.cs deleted file mode 100644 index b64b50e..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse6.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2bca35116bc5431d6dc4b4ea2ef3da2f","name":"generation_not_found","errors":["id: the generation either does not exist or has expired."]} - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse6 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse6( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse6() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.Json.g.cs deleted file mode 100644 index c6aea7a..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace StabilityAI -{ - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse7 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7), - jsonSerializerContext) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? FromJson( - string json) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::StabilityAI.SourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.g.cs deleted file mode 100644 index 34e4b6d..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponse7.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// Example: {"id":"2a1b2d4eafe2bc6ab4cd4d5c6133f513","name":"internal_error","errors":["An unexpected server error has occurred, please try again later."]} - /// - public sealed partial class GetV2alphaGenerationStableImageUpscaleResultResponse7 - { - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - ///
- /// a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - ///
- /// bad_request - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - ///
- /// [some-field: is required] - [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Errors { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)
- /// you file, as it will greatly assist us in diagnosing the root cause of the problem.
- /// Example: a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4 - /// - /// - /// Short-hand name for an error, useful for discriminating between errors with the same status code.
- /// Example: bad_request - /// - /// - /// One or more error messages indicating what went wrong.
- /// Example: [some-field: is required] - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetV2alphaGenerationStableImageUpscaleResultResponse7( - string id, - string name, - global::System.Collections.Generic.IList errors) - { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Errors = errors ?? throw new global::System.ArgumentNullException(nameof(errors)); - } - - /// - /// Initializes a new instance of the class. - /// - public GetV2alphaGenerationStableImageUpscaleResultResponse7() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs deleted file mode 100644 index 2c4b007..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason value) - { - return value switch - { - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.ContentFiltered, - "SUCCESS" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs deleted file mode 100644 index 90258ea..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2 value) - { - return value switch - { - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.ContentFiltered => "CONTENT_FILTERED", - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.ContentFiltered, - "SUCCESS" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs deleted file mode 100644 index ff38356..0000000 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.g.cs +++ /dev/null @@ -1,55 +0,0 @@ - -#nullable enable - -namespace StabilityAI -{ - /// - /// The reason the generation finished.
- /// - `SUCCESS` = successful generation.
- /// - `CONTENT_FILTERED` = successful generation, however the output violated our content moderation
- /// policy and has been blurred as a result.
- /// Example: SUCCESS - ///
- public enum GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 - { - /// - /// - /// - ContentFiltered, - /// - /// - /// - Success, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3Extensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3 value) - { - return value switch - { - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.ContentFiltered => "CONTENT_FILTERED", - GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.Success => "SUCCESS", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3? ToEnum(string value) - { - return value switch - { - "CONTENT_FILTERED" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.ContentFiltered, - "SUCCESS" => GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3.Success, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.Json.g.cs similarity index 88% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.Json.g.cs index 267b320..6a1d538 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse5.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class GetResultsResponse5 + public sealed partial class ImageJSONResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse5? FromJson( + public static global::StabilityAI.ImageJSONResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.GetResultsResponse5), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse5; + typeof(global::StabilityAI.ImageJSONResponse), + jsonSerializerContext) as global::StabilityAI.ImageJSONResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse5? FromJson( + public static global::StabilityAI.ImageJSONResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.GetResultsResponse5? FromJson( + public static global::StabilityAI.ImageJSONResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.GetResultsResponse5), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse5; + typeof(global::StabilityAI.ImageJSONResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.ImageJSONResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.g.cs similarity index 72% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.g.cs index 865da49..1120e11 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponse.g.cs @@ -6,7 +6,7 @@ namespace StabilityAI /// /// /// - public sealed partial class GetResultsResponse3 + public sealed partial class ImageJSONResponse { /// /// The generated image, encoded to base64.
@@ -18,13 +18,11 @@ public sealed partial class GetResultsResponse3 public required string Image { get; set; } /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 + /// ///
- /// 343940597 [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public double? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.AllOfJsonConverter))] + public global::StabilityAI.AllOf? Seed { get; set; } /// /// The reason the generation finished.
@@ -35,9 +33,9 @@ public sealed partial class GetResultsResponse3 ///
/// SUCCESS [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.GetResultsResponseFinishReason3JsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::StabilityAI.GetResultsResponseFinishReason3 FinishReason { get; set; } + public required global::StabilityAI.ImageJSONResponseFinishReason FinishReason { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,7 +44,7 @@ public sealed partial class GetResultsResponse3 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 generated image, encoded to base64.
@@ -59,18 +57,14 @@ public sealed partial class GetResultsResponse3 /// policy and has been blurred as a result.
/// Example: SUCCESS /// - /// - /// The seed used as random noise for this generation.
- /// Default Value: 0
- /// Example: 343940597 - /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public GetResultsResponse3( + public ImageJSONResponse( string image, - global::StabilityAI.GetResultsResponseFinishReason3 finishReason, - double? seed) + global::StabilityAI.ImageJSONResponseFinishReason finishReason, + global::StabilityAI.AllOf? seed) { this.Image = image ?? throw new global::System.ArgumentNullException(nameof(image)); this.Seed = seed; @@ -78,9 +72,9 @@ public GetResultsResponse3( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public GetResultsResponse3() + public ImageJSONResponse() { } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseFinishReason.g.cs similarity index 65% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseFinishReason.g.cs index 7051be9..c7c9823 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponseFinishReason.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseFinishReason.g.cs @@ -10,7 +10,7 @@ namespace StabilityAI /// policy and has been blurred as a result.
/// Example: SUCCESS ///
- public enum GetResultsResponseFinishReason + public enum ImageJSONResponseFinishReason { /// /// @@ -25,29 +25,29 @@ public enum GetResultsResponseFinishReason /// /// Enum extensions to do fast conversions without the reflection. /// - public static class GetResultsResponseFinishReasonExtensions + public static class ImageJSONResponseFinishReasonExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this GetResultsResponseFinishReason value) + public static string ToValueString(this ImageJSONResponseFinishReason value) { return value switch { - GetResultsResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", - GetResultsResponseFinishReason.Success => "SUCCESS", + ImageJSONResponseFinishReason.ContentFiltered => "CONTENT_FILTERED", + ImageJSONResponseFinishReason.Success => "SUCCESS", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static GetResultsResponseFinishReason? ToEnum(string value) + public static ImageJSONResponseFinishReason? ToEnum(string value) { return value switch { - "CONTENT_FILTERED" => GetResultsResponseFinishReason.ContentFiltered, - "SUCCESS" => GetResultsResponseFinishReason.Success, + "CONTENT_FILTERED" => ImageJSONResponseFinishReason.ContentFiltered, + "SUCCESS" => ImageJSONResponseFinishReason.Success, _ => null, }; } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.Json.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.Json.g.cs similarity index 87% rename from src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.Json.g.cs rename to src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.Json.g.cs index b69c3d3..e3a93a1 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.GetResultsResponse3.Json.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.Json.g.cs @@ -2,7 +2,7 @@ namespace StabilityAI { - public sealed partial class GetResultsResponse3 + public sealed partial class ImageJSONResponseSeed { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse3? FromJson( + public static global::StabilityAI.ImageJSONResponseSeed? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::StabilityAI.GetResultsResponse3), - jsonSerializerContext) as global::StabilityAI.GetResultsResponse3; + typeof(global::StabilityAI.ImageJSONResponseSeed), + jsonSerializerContext) as global::StabilityAI.ImageJSONResponseSeed; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::StabilityAI.GetResultsResponse3? FromJson( + public static global::StabilityAI.ImageJSONResponseSeed? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ 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::StabilityAI.GetResultsResponse3? FromJson( + public static global::StabilityAI.ImageJSONResponseSeed? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ 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::StabilityAI.GetResultsResponse3), - jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.GetResultsResponse3; + typeof(global::StabilityAI.ImageJSONResponseSeed), + jsonSerializerContext).ConfigureAwait(false)) as global::StabilityAI.ImageJSONResponseSeed; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ 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) { @@ -133,7 +133,7 @@ public string ToJson( global::StabilityAI.SourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.g.cs new file mode 100644 index 0000000..c700b61 --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageJSONResponseSeed.g.cs @@ -0,0 +1,20 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// The seed used as random noise for this generation.
+ /// Example: 343940597 + ///
+ public sealed partial class ImageJSONResponseSeed + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageRequestBody.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageRequestBody.g.cs index c79e2b9..6d8ddae 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageRequestBody.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.ImageToImageRequestBody.g.cs @@ -117,13 +117,11 @@ public partial class ImageToImageRequestBody public int? Samples { get; set; } /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 ///
- /// 0 [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public long? Seed { get; set; } + public double? Seed { get; set; } /// /// Number of diffusion steps to run
@@ -202,9 +200,8 @@ public partial class ImageToImageRequestBody /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -225,7 +222,7 @@ public ImageToImageRequestBody( global::StabilityAI.ClipGuidancePreset? clipGuidancePreset, global::StabilityAI.Sampler? sampler, int? samples, - long? seed, + double? seed, int? steps) { this.TextPrompts = textPrompts ?? throw new global::System.ArgumentNullException(nameof(textPrompts)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs index c241bcb..c25f77b 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.MaskingRequestBody.g.cs @@ -108,13 +108,11 @@ public partial class MaskingRequestBody public int? Samples { get; set; } /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 ///
- /// 0 [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public long? Seed { get; set; } + public double? Seed { get; set; } /// /// Number of diffusion steps to run
@@ -187,9 +185,8 @@ public partial class MaskingRequestBody /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -209,7 +206,7 @@ public MaskingRequestBody( global::StabilityAI.ClipGuidancePreset? clipGuidancePreset, global::StabilityAI.Sampler? sampler, int? samples, - long? seed, + double? seed, int? steps) { this.InitImage = initImage ?? throw new global::System.ArgumentNullException(nameof(initImage)); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Models.StylePreset.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Models.StylePreset.g.cs new file mode 100644 index 0000000..7e6ef21 --- /dev/null +++ b/src/libs/StabilityAI/Generated/StabilityAI.Models.StylePreset.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace StabilityAI +{ + /// + /// Guides the image model towards a particular style. + /// + public enum StylePreset + { + /// + /// + /// + x3dModel, + /// + /// + /// + AnalogFilm, + /// + /// + /// + Anime, + /// + /// + /// + Cinematic, + /// + /// + /// + ComicBook, + /// + /// + /// + DigitalArt, + /// + /// + /// + Enhance, + /// + /// + /// + FantasyArt, + /// + /// + /// + Isometric, + /// + /// + /// + LineArt, + /// + /// + /// + LowPoly, + /// + /// + /// + ModelingCompound, + /// + /// + /// + NeonPunk, + /// + /// + /// + Origami, + /// + /// + /// + Photographic, + /// + /// + /// + PixelArt, + /// + /// + /// + TileTexture, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class StylePresetExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this StylePreset value) + { + return value switch + { + StylePreset.x3dModel => "3d-model", + StylePreset.AnalogFilm => "analog-film", + StylePreset.Anime => "anime", + StylePreset.Cinematic => "cinematic", + StylePreset.ComicBook => "comic-book", + StylePreset.DigitalArt => "digital-art", + StylePreset.Enhance => "enhance", + StylePreset.FantasyArt => "fantasy-art", + StylePreset.Isometric => "isometric", + StylePreset.LineArt => "line-art", + StylePreset.LowPoly => "low-poly", + StylePreset.ModelingCompound => "modeling-compound", + StylePreset.NeonPunk => "neon-punk", + StylePreset.Origami => "origami", + StylePreset.Photographic => "photographic", + StylePreset.PixelArt => "pixel-art", + StylePreset.TileTexture => "tile-texture", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static StylePreset? ToEnum(string value) + { + return value switch + { + "3d-model" => StylePreset.x3dModel, + "analog-film" => StylePreset.AnalogFilm, + "anime" => StylePreset.Anime, + "cinematic" => StylePreset.Cinematic, + "comic-book" => StylePreset.ComicBook, + "digital-art" => StylePreset.DigitalArt, + "enhance" => StylePreset.Enhance, + "fantasy-art" => StylePreset.FantasyArt, + "isometric" => StylePreset.Isometric, + "line-art" => StylePreset.LineArt, + "low-poly" => StylePreset.LowPoly, + "modeling-compound" => StylePreset.ModelingCompound, + "neon-punk" => StylePreset.NeonPunk, + "origami" => StylePreset.Origami, + "photographic" => StylePreset.Photographic, + "pixel-art" => StylePreset.PixelArt, + "tile-texture" => StylePreset.TileTexture, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Results.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Results.JsonSerializerContext.g.cs index b93bfd7..0ffc91d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Results.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Results.JsonSerializerContext.g.cs @@ -19,26 +19,21 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsAccept), TypeInfoPropertyName = "GetResultsAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason), TypeInfoPropertyName = "GetResultsResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason2), TypeInfoPropertyName = "GetResultsResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason3), TypeInfoPropertyName = "GetResultsResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseStatus), TypeInfoPropertyName = "GetResultsResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponse7))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsAccept?), TypeInfoPropertyName = "NullableGetResultsAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason?), TypeInfoPropertyName = "NullableGetResultsResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason2?), TypeInfoPropertyName = "NullableGetResultsResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseFinishReason3?), TypeInfoPropertyName = "NullableGetResultsResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetResultsResponseStatus?), TypeInfoPropertyName = "NullableGetResultsResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class ResultsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -86,6 +81,10 @@ private ResultsSourceGenerationContext(global::System.Text.Json.JsonSerializerOp public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -108,21 +107,13 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::StabilityAI.GetResultsAccept) - - || typeToConvert == typeof(global::StabilityAI.GetResultsAccept?) - - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason?) + typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason2) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason2?) + || typeToConvert == typeof(global::StabilityAI.GetResultsAccept) - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason3?) + || typeToConvert == typeof(global::StabilityAI.GetResultsAccept?) || typeToConvert == typeof(global::StabilityAI.GetResultsResponseStatus) @@ -133,44 +124,24 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - if (typeToConvert == typeof(global::StabilityAI.GetResultsAccept)) - { - return new global::StabilityAI.JsonConverters.GetResultsAcceptJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetResultsAccept?)) - { - return new global::StabilityAI.JsonConverters.GetResultsAcceptNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason?)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReasonNullableJsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason2)) + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReason2JsonConverter(); + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason3)) + if (typeToConvert == typeof(global::StabilityAI.GetResultsAccept)) { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReason3JsonConverter(); + return new global::StabilityAI.JsonConverters.GetResultsAcceptJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseFinishReason3?)) + if (typeToConvert == typeof(global::StabilityAI.GetResultsAccept?)) { - return new global::StabilityAI.JsonConverters.GetResultsResponseFinishReason3NullableJsonConverter(); + return new global::StabilityAI.JsonConverters.GetResultsAcceptNullableJsonConverter(); } if (typeToConvert == typeof(global::StabilityAI.GetResultsResponseStatus)) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsById.g.cs index 455a474..8842403 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsById.g.cs @@ -107,7 +107,7 @@ partial void ProcessGetResultsByIdResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task GetResultsByIdAsync( + public async global::System.Threading.Tasks.Task GetResultsByIdAsync( string id, global::StabilityAI.GetResultsAccept? accept = default, string? stabilityClientId = default, @@ -186,7 +186,7 @@ partial void ProcessGetResultsByIdResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> GetResultsByIdAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetResultsByIdAsResponseAsync( string id, global::StabilityAI.GetResultsAccept? accept = default, string? stabilityClientId = default, @@ -481,19 +481,19 @@ partial void ProcessGetResultsByIdResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetResultsResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessGetResultsByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -518,19 +518,19 @@ partial void ProcessGetResultsByIdResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetResultsResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessGetResultsByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -555,19 +555,19 @@ partial void ProcessGetResultsByIdResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetResultsResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessGetResultsByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -609,9 +609,9 @@ partial void ProcessGetResultsByIdResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.GetResultsResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -641,9 +641,9 @@ partial void ProcessGetResultsByIdResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.GetResultsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsByIdAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsByIdAsBytes.g.cs index 3783502..a0303d1 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsByIdAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.ResultsClient.GetResultsByIdAsBytes.g.cs @@ -481,19 +481,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetResultsResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -518,19 +518,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetResultsResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -555,19 +555,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetResultsResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -991,19 +991,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetResultsResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetResultsResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1012,7 +1012,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1028,19 +1028,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetResultsResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetResultsResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1049,7 +1049,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -1065,19 +1065,19 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetResultsResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetResultsResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1086,7 +1086,7 @@ partial void ProcessGetResultsByIdAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs index 1d4b3cc..bace5ba 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultById.g.cs @@ -107,7 +107,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task GetStableImageUpscaleCreativeResultByIdAsync( + public async global::System.Threading.Tasks.Task GetStableImageUpscaleCreativeResultByIdAsync( string id, global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? accept = default, string? stabilityClientId = default, @@ -186,7 +186,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> GetStableImageUpscaleCreativeResultByIdAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetStableImageUpscaleCreativeResultByIdAsResponseAsync( string id, global::StabilityAI.GetStableImageUpscaleCreativeResultAccept? accept = default, string? stabilityClientId = default, @@ -481,19 +481,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -518,19 +518,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -555,19 +555,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -609,9 +609,9 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -641,9 +641,9 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.GetStableImageUpscaleCreativeResultResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultByIdAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultByIdAsBytes.g.cs index 17d3186..1bf155c 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultByIdAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StabilityAIClient.GetStableImageUpscaleCreativeResultByIdAsBytes.g.cs @@ -481,19 +481,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -502,7 +502,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -518,19 +518,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -539,7 +539,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -555,19 +555,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -576,7 +576,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -991,19 +991,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1012,7 +1012,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1028,19 +1028,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1049,7 +1049,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -1065,19 +1065,19 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetStableImageUpscaleCreativeResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1086,7 +1086,7 @@ partial void ProcessGetStableImageUpscaleCreativeResultByIdAsBytesResponseConten } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio.JsonSerializerContext.g.cs index aad7ca2..46dd16a 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio.JsonSerializerContext.g.cs @@ -19,12 +19,18 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason), TypeInfoPropertyName = "AudioJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AsyncGenerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel), TypeInfoPropertyName = "CreateAudioStableAudioTextToAudioRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestOutputFormat), TypeInfoPropertyName = "CreateAudioStableAudioTextToAudioRequestOutputFormat2")] @@ -38,33 +44,13 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioAccept), TypeInfoPropertyName = "CreateAudioStableAudioAudioToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintAccept), TypeInfoPropertyName = "CreateAudioStableAudioInpaintAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultAccept), TypeInfoPropertyName = "FetchAudioResultAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintResponse5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2), TypeInfoPropertyName = "FetchAudioResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseStatus), TypeInfoPropertyName = "FetchAudioResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason?), TypeInfoPropertyName = "NullableAudioJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel?), TypeInfoPropertyName = "NullableCreateAudioStableAudioTextToAudioRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateAudioStableAudioTextToAudioRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioRequestModel?), TypeInfoPropertyName = "NullableCreateAudioStableAudioAudioToAudioRequestModel2")] @@ -75,8 +61,6 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioAudioToAudioAccept?), TypeInfoPropertyName = "NullableCreateAudioStableAudioAudioToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudioInpaintAccept?), TypeInfoPropertyName = "NullableCreateAudioStableAudioInpaintAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultAccept?), TypeInfoPropertyName = "NullableFetchAudioResultAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?), TypeInfoPropertyName = "NullableFetchAudioResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?), TypeInfoPropertyName = "NullableFetchAudioResultResponseFinishReason22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.FetchAudioResultResponseStatus?), TypeInfoPropertyName = "NullableFetchAudioResultResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StableAudioSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -124,6 +108,10 @@ private StableAudioSourceGenerationContext(global::System.Text.Json.JsonSerializ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -150,6 +138,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) + || typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason) + + || typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?) + || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel) || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel?) @@ -190,14 +182,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.FetchAudioResultAccept?) - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?) - || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseStatus) || typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseStatus?); @@ -217,6 +201,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason)) + { + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?)) + { + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullableJsonConverter(); + } + if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudioTextToAudioRequestModel)) { return new global::StabilityAI.JsonConverters.CreateAudioStableAudioTextToAudioRequestModelJsonConverter(); @@ -317,26 +311,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.FetchAudioResultAcceptNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.FetchAudioResultResponseFinishReason2NullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.FetchAudioResultResponseStatus)) { return new global::StabilityAI.JsonConverters.FetchAudioResultResponseStatusJsonConverter(); diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2.JsonSerializerContext.g.cs index d2824f8..c8edea3 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2.JsonSerializerContext.g.cs @@ -19,12 +19,17 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason), TypeInfoPropertyName = "AudioJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestOutputFormat), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioRequestOutputFormat2")] @@ -36,33 +41,11 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioAccept), TypeInfoPropertyName = "CreateAudioStableAudio2AudioToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintAccept), TypeInfoPropertyName = "CreateAudioStableAudio2InpaintAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2TextToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2AudioToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2AudioToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason), TypeInfoPropertyName = "CreateAudioStableAudio2InpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2), TypeInfoPropertyName = "CreateAudioStableAudio2InpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponse6))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AudioJSONResponseFinishReason?), TypeInfoPropertyName = "NullableAudioJSONResponseFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2TextToAudioRequestModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2TextToAudioRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequestModel?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2AudioToAudioRequestModel2")] @@ -71,12 +54,6 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2TextToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioAccept?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2AudioToAudioAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintAccept?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2InpaintAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2TextToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2TextToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2AudioToAudioResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2AudioToAudioResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2InpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateAudioStableAudio2InpaintResponseFinishReason22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class StableAudio2SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -123,6 +100,10 @@ private StableAudio2SourceGenerationContext(global::System.Text.Json.JsonSeriali public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -149,6 +130,10 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) + || typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason) + + || typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?) + || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel) || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel?) @@ -179,31 +164,7 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintAccept) - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintAccept?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2?); + || typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintAccept?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -220,6 +181,16 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason)) + { + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.AudioJSONResponseFinishReason?)) + { + return new global::StabilityAI.JsonConverters.AudioJSONResponseFinishReasonNullableJsonConverter(); + } + if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioRequestModel)) { return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioRequestModelJsonConverter(); @@ -299,66 +270,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintAcceptNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2TextToAudioResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2TextToAudioResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2AudioToAudioResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateAudioStableAudio2InpaintResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateAudioStableAudio2InpaintResponseFinishReason2NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs index 1af321e..46ac5ea 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudio.g.cs @@ -140,7 +140,7 @@ partial void ProcessCreateAudioStableAudio2AudioToAudioResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest request, @@ -254,7 +254,7 @@ partial void ProcessCreateAudioStableAudio2AudioToAudioResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2AudioToAudioRequest request, @@ -659,19 +659,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -680,7 +680,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -733,19 +733,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -754,7 +754,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -770,19 +770,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -791,7 +791,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -807,19 +807,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -828,7 +828,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -861,9 +861,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -893,9 +893,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1063,7 +1063,7 @@ request.Audioname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, string prompt, byte[] audio, @@ -1256,7 +1256,7 @@ request.Audioname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2AudioToAudioAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -1682,19 +1682,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1703,7 +1703,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1756,19 +1756,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1777,7 +1777,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1793,19 +1793,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1814,7 +1814,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1830,19 +1830,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1851,7 +1851,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1885,7 +1885,7 @@ request.Audioname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1913,7 +1913,7 @@ request.Audioname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2099,7 +2099,7 @@ request.Audioname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2AudioToAudioAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -2525,19 +2525,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2546,7 +2546,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2599,19 +2599,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2620,7 +2620,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2636,19 +2636,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2657,7 +2657,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2673,19 +2673,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2694,7 +2694,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2727,9 +2727,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2759,9 +2759,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudioAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudioAsBytes.g.cs index fc3403c..06cf817 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudioAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2AudioToAudioAsBytes.g.cs @@ -659,19 +659,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -680,7 +680,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -733,19 +733,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -754,7 +754,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -770,19 +770,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -791,7 +791,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -807,19 +807,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -828,7 +828,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1384,19 +1384,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1405,7 +1405,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1458,19 +1458,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1479,7 +1479,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1495,19 +1495,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1516,7 +1516,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1532,19 +1532,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1553,7 +1553,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2399,19 +2399,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2420,7 +2420,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2473,19 +2473,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2494,7 +2494,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2510,19 +2510,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2531,7 +2531,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2547,19 +2547,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2568,7 +2568,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3234,19 +3234,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3255,7 +3255,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3308,19 +3308,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3329,7 +3329,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3345,19 +3345,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3366,7 +3366,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3382,19 +3382,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3403,7 +3403,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -4040,19 +4040,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4061,7 +4061,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -4114,19 +4114,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4135,7 +4135,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4151,19 +4151,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4172,7 +4172,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4188,19 +4188,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2AudioToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4209,7 +4209,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs index e3569ff..7ab64ad 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2Inpaint.g.cs @@ -128,7 +128,7 @@ partial void ProcessCreateAudioStableAudio2InpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2InpaintRequest request, @@ -230,7 +230,7 @@ partial void ProcessCreateAudioStableAudio2InpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2InpaintRequest request, @@ -627,19 +627,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -648,7 +648,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -701,19 +701,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -722,7 +722,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -738,19 +738,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -759,7 +759,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -775,19 +775,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -796,7 +796,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -829,9 +829,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -861,9 +861,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1005,7 +1005,7 @@ request.Audioname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, string prompt, byte[] audio, @@ -1169,7 +1169,7 @@ request.Audioname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2InpaintAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -1585,19 +1585,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1606,7 +1606,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1659,19 +1659,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1680,7 +1680,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1696,19 +1696,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1717,7 +1717,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1733,19 +1733,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1754,7 +1754,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1788,7 +1788,7 @@ request.Audioname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1816,7 +1816,7 @@ request.Audioname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1975,7 +1975,7 @@ request.Audioname is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2InpaintAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -2391,19 +2391,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2412,7 +2412,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2465,19 +2465,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2486,7 +2486,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2502,19 +2502,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2523,7 +2523,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2539,19 +2539,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2560,7 +2560,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2593,9 +2593,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2625,9 +2625,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudio2InpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2InpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2InpaintAsBytes.g.cs index bb9bad0..ce99c55 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2InpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2InpaintAsBytes.g.cs @@ -627,19 +627,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -648,7 +648,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -701,19 +701,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -722,7 +722,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -738,19 +738,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -759,7 +759,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -775,19 +775,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -796,7 +796,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1332,19 +1332,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1353,7 +1353,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1406,19 +1406,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1427,7 +1427,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1443,19 +1443,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1464,7 +1464,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1480,19 +1480,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1501,7 +1501,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2282,19 +2282,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2303,7 +2303,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2356,19 +2356,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2377,7 +2377,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2393,19 +2393,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2414,7 +2414,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2430,19 +2430,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2451,7 +2451,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3080,19 +3080,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3101,7 +3101,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3154,19 +3154,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3175,7 +3175,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3191,19 +3191,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3212,7 +3212,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3228,19 +3228,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3249,7 +3249,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3849,19 +3849,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3870,7 +3870,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3923,19 +3923,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3944,7 +3944,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3960,19 +3960,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3981,7 +3981,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3997,19 +3997,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2InpaintResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2InpaintResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4018,7 +4018,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs index 71f12ec..332d3c7 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudio.g.cs @@ -133,7 +133,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest request, @@ -240,7 +240,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2TextToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudio2TextToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudio2TextToAudioRequest request, @@ -599,19 +599,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -620,7 +620,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -673,19 +673,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -710,19 +710,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -731,7 +731,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -747,19 +747,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -801,9 +801,9 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AudioJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -833,9 +833,9 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AudioJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -972,7 +972,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudio2TextToAudioAsync( string contentType, string prompt, global::StabilityAI.CreateAudioStableAudio2TextToAudioAccept? accept = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudioAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudioAsBytes.g.cs index 4e5c162..122b667 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudioAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudio2Client.CreateAudioStableAudio2TextToAudioAsBytes.g.cs @@ -599,19 +599,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -620,7 +620,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -673,19 +673,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -710,19 +710,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -731,7 +731,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -747,19 +747,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1271,19 +1271,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse3.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1292,7 +1292,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1345,19 +1345,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1366,7 +1366,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1382,19 +1382,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1403,7 +1403,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1419,19 +1419,19 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudio2TextToAudioResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1440,7 +1440,7 @@ partial void ProcessCreateAudioStableAudio2TextToAudioAsBytesResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs index b95e4e7..37924d1 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioAudioToAudio.g.cs @@ -126,7 +126,7 @@ partial void ProcessCreateAudioStableAudioAudioToAudioResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest request, @@ -226,7 +226,7 @@ partial void ProcessCreateAudioStableAudioAudioToAudioResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioAudioToAudioRequest request, @@ -626,19 +626,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -647,7 +647,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -700,19 +700,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -721,7 +721,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -737,19 +737,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -758,7 +758,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -774,19 +774,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -795,7 +795,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -828,9 +828,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -860,9 +860,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1001,7 +1001,7 @@ request.Audioname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, string prompt, byte[] audio, @@ -1175,7 +1175,7 @@ request.Audioname is null /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioAudioToAudioAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -1596,19 +1596,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1617,7 +1617,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1670,19 +1670,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1691,7 +1691,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1707,19 +1707,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1728,7 +1728,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1744,19 +1744,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1765,7 +1765,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1799,7 +1799,7 @@ request.Audioname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1827,7 +1827,7 @@ request.Audioname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1994,7 +1994,7 @@ request.Audioname is null /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudioAudioToAudioAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -2415,19 +2415,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2436,7 +2436,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2489,19 +2489,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2510,7 +2510,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2526,19 +2526,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2547,7 +2547,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2563,19 +2563,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2584,7 +2584,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2617,9 +2617,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2649,9 +2649,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudioAudioToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioInpaint.g.cs index d0dd03b..c88a5e5 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioInpaint.g.cs @@ -125,7 +125,7 @@ partial void ProcessCreateAudioStableAudioInpaintResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, global::StabilityAI.CreateAudioStableAudioInpaintRequest request, @@ -224,7 +224,7 @@ partial void ProcessCreateAudioStableAudioInpaintResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioInpaintRequest request, @@ -632,19 +632,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -653,7 +653,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -706,19 +706,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -727,7 +727,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -743,19 +743,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -764,7 +764,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -780,19 +780,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -801,7 +801,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -834,9 +834,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -866,9 +866,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1004,7 +1004,7 @@ request.Audioname is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, string prompt, byte[] audio, @@ -1178,7 +1178,7 @@ request.Audioname is null /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioInpaintAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -1609,19 +1609,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1630,7 +1630,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1683,19 +1683,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1704,7 +1704,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1720,19 +1720,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1741,7 +1741,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1757,19 +1757,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1778,7 +1778,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1812,7 +1812,7 @@ request.Audioname is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1840,7 +1840,7 @@ request.Audioname is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -2005,7 +2005,7 @@ request.Audioname is null /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudioInpaintAsResponseAsync( string contentType, string prompt, global::System.IO.Stream audio, @@ -2436,19 +2436,19 @@ request.Audioname is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioInpaintResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2457,7 +2457,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2510,19 +2510,19 @@ request.Audioname is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioInpaintResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2531,7 +2531,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2547,19 +2547,19 @@ request.Audioname is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioInpaintResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2568,7 +2568,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2584,19 +2584,19 @@ request.Audioname is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2605,7 +2605,7 @@ request.Audioname is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2638,9 +2638,9 @@ request.Audioname is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2670,9 +2670,9 @@ request.Audioname is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudioInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioTextToAudio.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioTextToAudio.g.cs index 278584f..8f0dc04 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioTextToAudio.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.StableAudioClient.CreateAudioStableAudioTextToAudio.g.cs @@ -120,7 +120,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( string contentType, global::StabilityAI.CreateAudioStableAudioTextToAudioRequest request, @@ -214,7 +214,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( /// else:
/// raise Exception(str(result.json())) /// - public async global::System.Threading.Tasks.Task> CreateAudioStableAudioTextToAudioAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAudioStableAudioTextToAudioAsResponseAsync( string contentType, global::StabilityAI.CreateAudioStableAudioTextToAudioRequest request, @@ -569,19 +569,19 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -590,7 +590,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -643,19 +643,19 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse3.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -664,7 +664,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -680,19 +680,19 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse4.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -701,7 +701,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -717,19 +717,19 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -738,7 +738,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -771,9 +771,9 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateAudioStableAudioTextToAudioResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -803,9 +803,9 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateAudioStableAudioTextToAudioResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -914,7 +914,7 @@ partial void ProcessCreateAudioStableAudioTextToAudioResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( + public async global::System.Threading.Tasks.Task CreateAudioStableAudioTextToAudioAsync( string contentType, string prompt, global::StabilityAI.CreateAudioStableAudioTextToAudioAccept? accept = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.Upscale.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.Upscale.JsonSerializerContext.g.cs index 36d56d8..23c7763 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.Upscale.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.Upscale.JsonSerializerContext.g.cs @@ -19,62 +19,36 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleCreativeRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset), TypeInfoPropertyName = "CreateStableImageUpscaleCreativeRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat), TypeInfoPropertyName = "CreateStableImageUpscaleFastRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeAccept), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastAccept), TypeInfoPropertyName = "CreateStableImageUpscaleFastAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageUpscaleConservativeResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponse8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3), TypeInfoPropertyName = "CreateStableImageUpscaleFastResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponse8))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset?), TypeInfoPropertyName = "NullableStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleConservativeRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleCreativeRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleCreativeRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleFastRequestOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeAccept?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleConservativeAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastAccept?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleFastAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleConservativeResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleConservativeResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleConservativeResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleFastResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleFastResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateStableImageUpscaleFastResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class UpscaleSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -121,6 +95,10 @@ private UpscaleSourceGenerationContext(global::System.Text.Json.JsonSerializerOp public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -147,6 +125,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) + + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) + + || typeToConvert == typeof(global::StabilityAI.StylePreset) + + || typeToConvert == typeof(global::StabilityAI.StylePreset?) + || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat?) @@ -155,10 +141,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat) || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat?) @@ -169,31 +151,7 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastAccept) - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastAccept?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3?); + || typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastAccept?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -210,6 +168,26 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) + { + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) + { + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.StylePreset)) + { + return new global::StabilityAI.JsonConverters.StylePresetJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.StylePreset?)) + { + return new global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter(); + } + if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeRequestOutputFormat)) { return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeRequestOutputFormatJsonConverter(); @@ -230,16 +208,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleCreativeRequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastRequestOutputFormat)) { return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastRequestOutputFormatJsonConverter(); @@ -269,66 +237,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastAcceptNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleConservativeResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleConservativeResponseFinishReason3NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateStableImageUpscaleFastResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateStableImageUpscaleFastResponseFinishReason3NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservative.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservative.g.cs index c38a9ee..cde4dbd 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservative.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservative.g.cs @@ -122,7 +122,7 @@ partial void ProcessCreateStableImageUpscaleConservativeResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleConservativeRequest request, @@ -218,7 +218,7 @@ partial void ProcessCreateStableImageUpscaleConservativeResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleConservativeRequest request, @@ -599,19 +599,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -620,7 +620,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -673,19 +673,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -710,19 +710,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -731,7 +731,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -747,19 +747,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -784,19 +784,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -805,7 +805,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -838,9 +838,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -870,9 +870,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -1008,7 +1008,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, byte[] image, string imagename, @@ -1164,7 +1164,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleConservativeAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1560,19 +1560,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1581,7 +1581,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1634,19 +1634,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1655,7 +1655,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1671,19 +1671,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1692,7 +1692,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1708,19 +1708,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1729,7 +1729,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1745,19 +1745,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1766,7 +1766,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1800,7 +1800,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1828,7 +1828,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1983,7 +1983,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleConservativeAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2379,19 +2379,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2400,7 +2400,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2453,19 +2453,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2474,7 +2474,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2490,19 +2490,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2511,7 +2511,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2527,19 +2527,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2548,7 +2548,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2564,19 +2564,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2585,7 +2585,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2618,9 +2618,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2650,9 +2650,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageUpscaleConservativeResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservativeAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservativeAsBytes.g.cs index ff37059..d76a888 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservativeAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleConservativeAsBytes.g.cs @@ -599,19 +599,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -620,7 +620,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -673,19 +673,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -694,7 +694,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -710,19 +710,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -731,7 +731,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -747,19 +747,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -768,7 +768,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -784,19 +784,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -805,7 +805,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1319,19 +1319,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1340,7 +1340,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1393,19 +1393,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1414,7 +1414,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1430,19 +1430,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1451,7 +1451,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1467,19 +1467,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1488,7 +1488,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1504,19 +1504,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1525,7 +1525,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2272,19 +2272,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2293,7 +2293,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2346,19 +2346,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2367,7 +2367,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2383,19 +2383,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2404,7 +2404,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2420,19 +2420,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2441,7 +2441,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2457,19 +2457,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2478,7 +2478,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3083,19 +3083,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3104,7 +3104,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3157,19 +3157,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3178,7 +3178,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3194,19 +3194,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3215,7 +3215,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3231,19 +3231,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3252,7 +3252,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3268,19 +3268,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3289,7 +3289,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3865,19 +3865,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3886,7 +3886,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3939,19 +3939,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3960,7 +3960,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3976,19 +3976,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3997,7 +3997,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -4013,19 +4013,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4034,7 +4034,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4050,19 +4050,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleConservativeResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleConservativeResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4071,7 +4071,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleCreative.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleCreative.g.cs index d179539..5161ab6 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleCreative.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleCreative.g.cs @@ -582,19 +582,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -603,7 +603,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -656,19 +656,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -677,7 +677,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -693,19 +693,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -714,7 +714,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -730,19 +730,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -751,7 +751,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -767,19 +767,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -788,7 +788,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1004,7 +1004,7 @@ request.Imagename is null global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1157,7 +1157,7 @@ request.Imagename is null global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1540,19 +1540,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1561,7 +1561,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1614,19 +1614,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1635,7 +1635,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1651,19 +1651,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1672,7 +1672,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1688,19 +1688,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1709,7 +1709,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1725,19 +1725,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1746,7 +1746,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1972,7 +1972,7 @@ request.Imagename is null global::StabilityAI.CreateStableImageUpscaleCreativeRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateStableImageUpscaleCreativeRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -2355,19 +2355,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2376,7 +2376,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2429,19 +2429,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse3? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse3.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2450,7 +2450,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2466,19 +2466,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse4? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse4.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2487,7 +2487,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2503,19 +2503,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse5? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse5.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2524,7 +2524,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2540,19 +2540,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleCreativeResponse6? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleCreativeResponse6.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2561,7 +2561,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFast.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFast.g.cs index b881e17..1e6315e 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFast.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFast.g.cs @@ -117,7 +117,7 @@ partial void ProcessCreateStableImageUpscaleFastResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleFastRequest request, @@ -208,7 +208,7 @@ partial void ProcessCreateStableImageUpscaleFastResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( string contentType, global::StabilityAI.CreateStableImageUpscaleFastRequest request, @@ -561,19 +561,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -635,19 +635,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -656,7 +656,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -672,19 +672,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -693,7 +693,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -709,19 +709,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -730,7 +730,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -746,19 +746,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -767,7 +767,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -800,9 +800,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -832,9 +832,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -946,7 +946,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, byte[] image, string imagename, @@ -1069,7 +1069,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( + public async global::System.Threading.Tasks.Task CreateStableImageUpscaleFastAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1429,19 +1429,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1450,7 +1450,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1503,19 +1503,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1524,7 +1524,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1540,19 +1540,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1561,7 +1561,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1577,19 +1577,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1598,7 +1598,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1614,19 +1614,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1635,7 +1635,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1669,7 +1669,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1697,7 +1697,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1827,7 +1827,7 @@ request.Imagename is null /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateStableImageUpscaleFastAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -2187,19 +2187,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2208,7 +2208,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2261,19 +2261,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2282,7 +2282,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2298,19 +2298,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2319,7 +2319,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2335,19 +2335,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2356,7 +2356,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2372,19 +2372,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2393,7 +2393,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2426,9 +2426,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2458,9 +2458,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateStableImageUpscaleFastResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFastAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFastAsBytes.g.cs index f8c4632..522d772 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFastAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.UpscaleClient.CreateStableImageUpscaleFastAsBytes.g.cs @@ -561,19 +561,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -582,7 +582,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -635,19 +635,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -656,7 +656,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -672,19 +672,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -693,7 +693,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -709,19 +709,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -730,7 +730,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -746,19 +746,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -767,7 +767,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1248,19 +1248,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1269,7 +1269,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1322,19 +1322,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1343,7 +1343,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1359,19 +1359,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1380,7 +1380,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -1396,19 +1396,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1417,7 +1417,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1433,19 +1433,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1454,7 +1454,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2108,19 +2108,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2129,7 +2129,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2182,19 +2182,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2203,7 +2203,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2219,19 +2219,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2240,7 +2240,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -2256,19 +2256,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2277,7 +2277,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2293,19 +2293,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2314,7 +2314,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2858,19 +2858,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2879,7 +2879,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2932,19 +2932,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2953,7 +2953,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2969,19 +2969,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2990,7 +2990,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3006,19 +3006,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3027,7 +3027,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3043,19 +3043,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3064,7 +3064,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3579,19 +3579,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateStableImageUpscaleFastResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3600,7 +3600,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3653,19 +3653,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse5? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.CreateStableImageUpscaleFastResponse5.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3674,7 +3674,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3690,19 +3690,19 @@ request.Imagename is null { string? __content_422 = null; global::System.Exception? __exception_422 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse6? __value_422 = null; + global::StabilityAI.Error? __value_422 = null; try { if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::StabilityAI.CreateStableImageUpscaleFastResponse6.FromJson(__content_422, JsonSerializerContext); + __value_422 = global::StabilityAI.Error.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3711,7 +3711,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, @@ -3727,19 +3727,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse7? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.CreateStableImageUpscaleFastResponse7.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3748,7 +3748,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3764,19 +3764,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateStableImageUpscaleFastResponse8? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateStableImageUpscaleFastResponse8.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3785,7 +3785,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1Engines.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1Engines.JsonSerializerContext.g.cs index f0c2f67..2eee10f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1Engines.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1Engines.JsonSerializerContext.g.cs @@ -22,8 +22,10 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.EngineType), TypeInfoPropertyName = "EngineType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.EngineType?), TypeInfoPropertyName = "NullableEngineType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class V1EnginesSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -70,6 +72,10 @@ private V1EnginesSourceGenerationContext(global::System.Text.Json.JsonSerializer public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1Generation.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1Generation.JsonSerializerContext.g.cs index 4bc8e12..b50854d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1Generation.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1Generation.JsonSerializerContext.g.cs @@ -20,11 +20,11 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ClipGuidancePreset), TypeInfoPropertyName = "ClipGuidancePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Sampler), TypeInfoPropertyName = "Sampler2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.TextPrompt))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -59,7 +59,6 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ClipGuidancePreset?), TypeInfoPropertyName = "NullableClipGuidancePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Sampler?), TypeInfoPropertyName = "NullableSampler2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InitImageMode?), TypeInfoPropertyName = "NullableInitImageMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageToImageRequestBodyDiscriminatorInitImageMode?), TypeInfoPropertyName = "NullableImageToImageRequestBodyDiscriminatorInitImageMode2")] @@ -74,6 +73,7 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageToImageAccept?), TypeInfoPropertyName = "NullableImageToImageAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.UpscaleImageAccept?), TypeInfoPropertyName = "NullableUpscaleImageAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.MaskingAccept?), TypeInfoPropertyName = "NullableMaskingAccept2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class V1GenerationSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -126,6 +126,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::StabilityAI.JsonConverters.MaskingUsingInitImageAlphaRequestBodyJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.TextToImageRequestBodyJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs index 019c037..e550d7d 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImage.g.cs @@ -894,9 +894,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -920,7 +919,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1020,9 +1019,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1068,7 +1066,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1823,9 +1821,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1871,7 +1868,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImageAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImageAsBytes.g.cs index f433cf4..e5b4cec 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImageAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.ImageToImageAsBytes.g.cs @@ -1560,9 +1560,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1586,7 +1585,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1686,9 +1685,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1734,7 +1732,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -2481,9 +2479,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -2529,7 +2526,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -3247,9 +3244,8 @@ request.InitImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -3295,7 +3291,7 @@ request.InitImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs index 6a294c7..01b2981 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.Masking.g.cs @@ -904,9 +904,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -929,7 +928,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1020,9 +1019,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1069,7 +1067,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1833,9 +1831,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1882,7 +1879,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.MaskingAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.MaskingAsBytes.g.cs index 5aa079e..28e09f9 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.MaskingAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1GenerationClient.MaskingAsBytes.g.cs @@ -1588,9 +1588,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1613,7 +1612,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -1704,9 +1703,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -1753,7 +1751,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -2509,9 +2507,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -2558,7 +2555,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -3285,9 +3282,8 @@ request.MaskImagename is null /// Example: 1 /// /// - /// Random noise seed (omit this option or use `0` for a random seed)
- /// Default Value: 0
- /// Example: 0 + /// A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)
+ /// Default Value: 0 /// /// /// Number of diffusion steps to run
@@ -3334,7 +3330,7 @@ request.MaskImagename is null global::StabilityAI.ClipGuidancePreset? clipGuidancePreset = default, global::StabilityAI.Sampler? sampler = default, int? samples = default, - long? seed = default, + double? seed = default, int? steps = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V1User.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V1User.JsonSerializerContext.g.cs index 5f6df6f..84c5c2a 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V1User.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V1User.JsonSerializerContext.g.cs @@ -20,6 +20,7 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AccountResponseBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -28,6 +29,7 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class V1UserSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -74,6 +76,10 @@ private V1UserSourceGenerationContext(global::System.Text.Json.JsonSerializerOpt public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGeneration.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGeneration.JsonSerializerContext.g.cs index 56c6e5d..e6e0d63 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGeneration.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGeneration.JsonSerializerContext.g.cs @@ -19,11 +19,18 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf), TypeInfoPropertyName = "AllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason), TypeInfoPropertyName = "ImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AsyncGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset), TypeInfoPropertyName = "StylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode), TypeInfoPropertyName = "InpaintingSearchModeRequestBodyMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyOutputFormat), TypeInfoPropertyName = "InpaintingSearchModeRequestBodyOutputFormat2")] @@ -32,53 +39,28 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBodyOutputFormat), TypeInfoPropertyName = "InpaintingMaskingModeRequestBodyOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageUpscaleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus), TypeInfoPropertyName = "GetV2alphaGenerationStableImageUpscaleResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3), TypeInfoPropertyName = "CreateV2alphaGenerationStableImageInpaintResponseFinishReason32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.AllOf?), TypeInfoPropertyName = "NullableAllOfDoubleObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ImageJSONResponseFinishReason?), TypeInfoPropertyName = "NullableImageJSONResponseFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.StylePreset?), TypeInfoPropertyName = "NullableStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode?), TypeInfoPropertyName = "NullableInpaintingSearchModeRequestBodyMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingSearchModeRequestBodyOutputFormat?), TypeInfoPropertyName = "NullableInpaintingSearchModeRequestBodyOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBodyMode?), TypeInfoPropertyName = "NullableInpaintingMaskingModeRequestBodyMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.InpaintingMaskingModeRequestBodyOutputFormat?), TypeInfoPropertyName = "NullableInpaintingMaskingModeRequestBodyOutputFormat2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageUpscaleRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageUpscaleRequestStylePreset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept?), TypeInfoPropertyName = "NullableGetV2alphaGenerationStableImageUpscaleResultAccept2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintAccept2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason?), TypeInfoPropertyName = "NullableGetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2?), TypeInfoPropertyName = "NullableGetV2alphaGenerationStableImageUpscaleResultResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3?), TypeInfoPropertyName = "NullableGetV2alphaGenerationStableImageUpscaleResultResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus?), TypeInfoPropertyName = "NullableGetV2alphaGenerationStableImageUpscaleResultResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintResponseFinishReason2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintResponseFinishReason22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3?), TypeInfoPropertyName = "NullableCreateV2alphaGenerationStableImageInpaintResponseFinishReason32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class V2alphaGenerationSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -126,6 +108,10 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions { options.Converters.Add(new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintRequestJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -152,6 +138,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.ContentModerationResponseName?) + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason) + + || typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?) + + || typeToConvert == typeof(global::StabilityAI.StylePreset) + + || typeToConvert == typeof(global::StabilityAI.StylePreset?) + || typeToConvert == typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode) || typeToConvert == typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode?) @@ -172,10 +166,6 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat?) - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset?) - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode) || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode?) @@ -188,33 +178,9 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept?) - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3?) - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus) - || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus?) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason?) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2?) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3) - - || typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3?); + || typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -231,6 +197,26 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.ContentModerationResponseNameNullableJsonConverter(); } + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason)) + { + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.ImageJSONResponseFinishReason?)) + { + return new global::StabilityAI.JsonConverters.ImageJSONResponseFinishReasonNullableJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.StylePreset)) + { + return new global::StabilityAI.JsonConverters.StylePresetJsonConverter(); + } + + if (typeToConvert == typeof(global::StabilityAI.StylePreset?)) + { + return new global::StabilityAI.JsonConverters.StylePresetNullableJsonConverter(); + } + if (typeToConvert == typeof(global::StabilityAI.InpaintingSearchModeRequestBodyMode)) { return new global::StabilityAI.JsonConverters.InpaintingSearchModeRequestBodyModeJsonConverter(); @@ -281,16 +267,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormatNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset?)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageUpscaleRequestStylePresetNullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorMode)) { return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintRequestDiscriminatorModeJsonConverter(); @@ -321,36 +297,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintAcceptNullableJsonConverter(); } - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseFinishReason3NullableJsonConverter(); - } - if (typeToConvert == typeof(global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponseStatus)) { return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusJsonConverter(); @@ -360,36 +306,6 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::StabilityAI.JsonConverters.GetV2alphaGenerationStableImageUpscaleResultResponseStatusNullableJsonConverter(); } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason?)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReasonNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2?)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason2NullableJsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3JsonConverter(); - } - - if (typeToConvert == typeof(global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3?)) - { - return new global::StabilityAI.JsonConverters.CreateV2alphaGenerationStableImageInpaintResponseFinishReason3NullableJsonConverter(); - } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs index 0b3b998..2c47938 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaint.g.cs @@ -101,7 +101,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( + public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest request, @@ -176,7 +176,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageInpaintAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageInpaintAsResponseAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintRequest request, @@ -460,19 +460,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -481,7 +481,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -534,19 +534,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -555,7 +555,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -588,9 +588,9 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -620,9 +620,9 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -694,7 +694,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( + public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageInpaintAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageInpaintAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaintAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaintAsBytes.g.cs index 953e2fa..d2c6c66 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaintAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageInpaintAsBytes.g.cs @@ -460,19 +460,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -481,7 +481,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -534,19 +534,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -555,7 +555,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -957,19 +957,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse4.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -978,7 +978,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1031,19 +1031,19 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageInpaintResponse5.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1052,7 +1052,7 @@ partial void ProcessCreateV2alphaGenerationStableImageInpaintAsBytesResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs index 7f06646..fe44b27 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.CreateV2alphaGenerationStableImageUpscale.g.cs @@ -79,7 +79,7 @@ partial void ProcessCreateV2alphaGenerationStableImageUpscaleResponseContent( /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest request, @@ -132,7 +132,7 @@ partial void ProcessCreateV2alphaGenerationStableImageUpscaleResponseContent( /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( string contentType, global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequest request, @@ -489,19 +489,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -510,7 +510,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -563,19 +563,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -584,7 +584,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -617,9 +617,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -649,9 +649,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -759,7 +759,7 @@ request.Imagename is null /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, byte[] image, string imagename, @@ -768,7 +768,7 @@ request.Imagename is null global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -876,7 +876,7 @@ request.Imagename is null /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( + public async global::System.Threading.Tasks.Task CreateV2alphaGenerationStableImageUpscaleAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -885,7 +885,7 @@ request.Imagename is null global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1250,19 +1250,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1271,7 +1271,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1324,19 +1324,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1345,7 +1345,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1379,7 +1379,7 @@ request.Imagename is null __response.EnsureSuccessStatusCode(); return - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJson(__content, JsonSerializerContext) ?? + global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -1407,7 +1407,7 @@ request.Imagename is null ).ConfigureAwait(false); return - await global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) @@ -1529,7 +1529,7 @@ request.Imagename is null /// )
/// print("Generation ID:", response.json().get('id')) /// - public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateV2alphaGenerationStableImageUpscaleAsResponseAsync( string contentType, global::System.IO.Stream image, string imagename, @@ -1538,7 +1538,7 @@ request.Imagename is null global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestOutputFormat? outputFormat = default, double? seed = default, double? creativity = default, - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleRequestStylePreset? stylePreset = default, + global::StabilityAI.StylePreset? stylePreset = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -1903,19 +1903,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse2.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1924,7 +1924,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1977,19 +1977,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse3.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1998,7 +1998,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2031,9 +2031,9 @@ request.Imagename is null { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.AsyncGenerationResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -2063,9 +2063,9 @@ request.Imagename is null #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.CreateV2alphaGenerationStableImageUpscaleResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.AsyncGenerationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs index 580a7bc..bec533f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultById.g.cs @@ -84,7 +84,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task GetV2alphaGenerationStableImageUpscaleResultByIdAsync( + public async global::System.Threading.Tasks.Task GetV2alphaGenerationStableImageUpscaleResultByIdAsync( string id, global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, @@ -140,7 +140,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont /// else:
/// raise Exception(str(response.json())) /// - public async global::System.Threading.Tasks.Task> GetV2alphaGenerationStableImageUpscaleResultByIdAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetV2alphaGenerationStableImageUpscaleResultByIdAsResponseAsync( string id, global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultAccept? accept = default, global::StabilityAI.AutoSDKRequestOptions? requestOptions = default, @@ -414,19 +414,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -435,7 +435,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -488,19 +488,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -509,7 +509,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -525,19 +525,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -546,7 +546,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -579,9 +579,9 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont { __response.EnsureSuccessStatusCode(); - var __value = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::StabilityAI.ImageJSONResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -611,9 +611,9 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdResponseCont #endif ).ConfigureAwait(false); - var __value = await global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::StabilityAI.ImageJSONResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::StabilityAI.AutoSDKHttpResponse( + return new global::StabilityAI.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::StabilityAI.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultByIdAsBytes.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultByIdAsBytes.g.cs index c7629d8..f668464 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultByIdAsBytes.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.V2alphaGenerationClient.GetV2alphaGenerationStableImageUpscaleResultByIdAsBytes.g.cs @@ -414,19 +414,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -435,7 +435,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -488,19 +488,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -509,7 +509,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -525,19 +525,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -546,7 +546,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -923,19 +923,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse5.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -944,7 +944,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -997,19 +997,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_404 = null; global::System.Exception? __exception_404 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6? __value_404 = null; + global::StabilityAI.Error? __value_404 = null; try { if (__effectiveReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } else { __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_404 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse6.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::StabilityAI.Error.FromJson(__content_404, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1018,7 +1018,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_404, @@ -1034,19 +1034,19 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.GetV2alphaGenerationStableImageUpscaleResultResponse7.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1055,7 +1055,7 @@ partial void ProcessGetV2alphaGenerationStableImageUpscaleResultByIdAsBytesRespo } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.x3d.JsonSerializerContext.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.x3d.JsonSerializerContext.g.cs index 9f8cbc1..e6963bc 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.x3d.JsonSerializerContext.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.x3d.JsonSerializerContext.g.cs @@ -19,11 +19,12 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Error))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName), TypeInfoPropertyName = "ContentModerationResponseName2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dRequestTextureResolution), TypeInfoPropertyName = "Create3dStableFast3dRequestTextureResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dRequestRemesh), TypeInfoPropertyName = "Create3dStableFast3dRequestRemesh2")] @@ -31,14 +32,6 @@ namespace StabilityAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dRequestTextureResolution), TypeInfoPropertyName = "Create3dStablePointAware3dRequestTextureResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dRequestRemesh), TypeInfoPropertyName = "Create3dStablePointAware3dRequestRemesh2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dRequestTargetType), TypeInfoPropertyName = "Create3dStablePointAware3dRequestTargetType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dResponse4))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse3))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStablePointAware3dResponse4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.ContentModerationResponseName?), TypeInfoPropertyName = "NullableContentModerationResponseName2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::StabilityAI.Create3dStableFast3dRequestTextureResolution?), TypeInfoPropertyName = "NullableCreate3dStableFast3dRequestTextureResolution2")] @@ -92,6 +85,10 @@ private x3dSourceGenerationContext(global::System.Text.Json.JsonSerializerOption public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); + options.Converters.Add(new global::StabilityAI.JsonConverters.AllOfJsonConverter()); options.Converters.Add(new global::StabilityAI.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStableFast3d.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStableFast3d.g.cs index cc8b556..38a1c48 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStableFast3d.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStableFast3d.g.cs @@ -556,19 +556,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStableFast3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -577,7 +577,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -630,19 +630,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStableFast3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -651,7 +651,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -667,19 +667,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStableFast3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -688,7 +688,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -704,19 +704,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStableFast3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -725,7 +725,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1212,19 +1212,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStableFast3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1233,7 +1233,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1286,19 +1286,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStableFast3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1307,7 +1307,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1323,19 +1323,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStableFast3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1344,7 +1344,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1360,19 +1360,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStableFast3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1381,7 +1381,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2105,19 +2105,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStableFast3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2126,7 +2126,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2179,19 +2179,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStableFast3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2200,7 +2200,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2216,19 +2216,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStableFast3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2237,7 +2237,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2253,19 +2253,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStableFast3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2274,7 +2274,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2859,19 +2859,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStableFast3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2880,7 +2880,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2933,19 +2933,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStableFast3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2954,7 +2954,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2970,19 +2970,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStableFast3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2991,7 +2991,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3007,19 +3007,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStableFast3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3028,7 +3028,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3584,19 +3584,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStableFast3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStableFast3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3605,7 +3605,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3658,19 +3658,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStableFast3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStableFast3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3679,7 +3679,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3695,19 +3695,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStableFast3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStableFast3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3716,7 +3716,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3732,19 +3732,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStableFast3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStableFast3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3753,7 +3753,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStablePointAware3d.g.cs b/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStablePointAware3d.g.cs index 2db7714..90d039f 100644 --- a/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStablePointAware3d.g.cs +++ b/src/libs/StabilityAI/Generated/StabilityAI.x3dClient.Create3dStablePointAware3d.g.cs @@ -610,19 +610,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStablePointAware3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -631,7 +631,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -684,19 +684,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStablePointAware3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -705,7 +705,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -721,19 +721,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStablePointAware3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -742,7 +742,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -758,19 +758,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStablePointAware3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -779,7 +779,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -1305,19 +1305,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStablePointAware3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1326,7 +1326,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -1379,19 +1379,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStablePointAware3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1400,7 +1400,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -1416,19 +1416,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStablePointAware3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1437,7 +1437,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -1453,19 +1453,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStablePointAware3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1474,7 +1474,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -2288,19 +2288,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStablePointAware3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2309,7 +2309,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -2362,19 +2362,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStablePointAware3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2383,7 +2383,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -2399,19 +2399,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStablePointAware3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2420,7 +2420,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -2436,19 +2436,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStablePointAware3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -2457,7 +2457,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3099,19 +3099,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStablePointAware3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3120,7 +3120,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3173,19 +3173,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStablePointAware3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3194,7 +3194,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3210,19 +3210,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStablePointAware3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3231,7 +3231,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -3247,19 +3247,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStablePointAware3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3268,7 +3268,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, @@ -3881,19 +3881,19 @@ request.Imagename is null { string? __content_400 = null; global::System.Exception? __exception_400 = null; - global::StabilityAI.Create3dStablePointAware3dResponse? __value_400 = null; + global::StabilityAI.Error? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::StabilityAI.Create3dStablePointAware3dResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::StabilityAI.Error.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3902,7 +3902,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -3955,19 +3955,19 @@ request.Imagename is null { string? __content_413 = null; global::System.Exception? __exception_413 = null; - global::StabilityAI.Create3dStablePointAware3dResponse2? __value_413 = null; + global::StabilityAI.Error? __value_413 = null; try { if (__effectiveReadResponseAsString) { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } else { __content_413 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_413 = global::StabilityAI.Create3dStablePointAware3dResponse2.FromJson(__content_413, JsonSerializerContext); + __value_413 = global::StabilityAI.Error.FromJson(__content_413, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -3976,7 +3976,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_413 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_413, @@ -3992,19 +3992,19 @@ request.Imagename is null { string? __content_429 = null; global::System.Exception? __exception_429 = null; - global::StabilityAI.Create3dStablePointAware3dResponse3? __value_429 = null; + global::StabilityAI.Error? __value_429 = null; try { if (__effectiveReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } else { __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_429 = global::StabilityAI.Create3dStablePointAware3dResponse3.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::StabilityAI.Error.FromJson(__content_429, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4013,7 +4013,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_429, @@ -4029,19 +4029,19 @@ request.Imagename is null { string? __content_500 = null; global::System.Exception? __exception_500 = null; - global::StabilityAI.Create3dStablePointAware3dResponse4? __value_500 = null; + global::StabilityAI.Error? __value_500 = null; try { if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::StabilityAI.Create3dStablePointAware3dResponse4.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::StabilityAI.Error.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -4050,7 +4050,7 @@ request.Imagename is null } - throw global::StabilityAI.ApiException.Create( + throw global::StabilityAI.ApiException.Create( statusCode: __response.StatusCode, message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, diff --git a/src/libs/StabilityAI/openapi.yaml b/src/libs/StabilityAI/openapi.yaml index 525d05b..2f5645f 100644 --- a/src/libs/StabilityAI/openapi.yaml +++ b/src/libs/StabilityAI/openapi.yaml @@ -807,25 +807,10 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" } ], "requestBody": { @@ -841,15 +826,10 @@ "example": "./some/image.png" }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "output_format": { "type": "string", @@ -862,11 +842,7 @@ "description": "Dictates the `content-type` of the generated image." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "creativity": { "type": "number", @@ -876,27 +852,7 @@ "description": "Indicates how creative the model should be when upscaling an image.\nHigher values will result in more details being added to the image during upscaling." }, "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." + "$ref": "#/components/schemas/StylePreset" } }, "required": [ @@ -913,115 +869,19 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] + "$ref": "#/components/schemas/AsyncGenerationResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -1060,14 +920,7 @@ "in": "path" }, { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { "schema": { @@ -1089,10 +942,7 @@ "description": "The upscale was successful.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -1127,145 +977,44 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } @@ -1297,148 +1046,16 @@ } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "404": { - "description": "id: the generation either does not exist or has expired.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2bca35116bc5431d6dc4b4ea2ef3da2f", - "name": "generation_not_found", - "errors": [ - "id: the generation either does not exist or has expired." - ] - } - } - } - } + "$ref": "#/components/responses/GenerationNotFound" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -1469,25 +1086,10 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { "schema": { @@ -1529,286 +1131,16 @@ }, "responses": { "200": { - "description": "Inpainting was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/ImageInpaintSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -1839,49 +1171,19 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -1940,216 +1242,22 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "content-type": { - "description": "The format of the 3D model.", - "schema": { - "type": "string", - "example": "model/gltf-binary" - } - } - }, - "content": { - "model/gltf-binary": { - "schema": { - "type": "string", - "description": "The bytes of the generated 3D model.", - "format": "binary" - } - } - } + "$ref": "#/components/responses/ModelGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -2180,49 +1288,19 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -2289,11 +1367,7 @@ "description": "This sets the guidance scaling of the point diffusion module. Lower values produce less\ndetail and higher can introduce artifacts. The default of `3` produces best results." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" } }, "required": [ @@ -2305,216 +1379,22 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "content-type": { - "description": "The format of the 3D model.", - "schema": { - "type": "string", - "example": "model/gltf-binary" - } - } - }, - "content": { - "model/gltf-binary": { - "schema": { - "type": "string", - "description": "The bytes of the generated 3D model.", - "format": "binary" - } - } - } + "$ref": "#/components/responses/ModelGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -2553,52 +1433,19 @@ "in": "path" }, { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "default": "*/*", - "description": "Specify `*/*` to receive the bytes of the result directly. Otherwise specify `application/json` to receive the result as base64 encoded JSON.", - "enum": [ - "*/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptResult" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "responses": { @@ -2606,10 +1453,7 @@ "description": "Generation finished.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -2644,145 +1488,44 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } @@ -2814,138 +1557,13 @@ } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "404": { - "description": "id: the generation either does not exist or has expired.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2bca35116bc5431d6dc4b4ea2ef3da2f", - "name": "generation_not_found", - "errors": [ - "id: the generation either does not exist or has expired." - ] - } - } - } - } + "$ref": "#/components/responses/GenerationNotFound" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -2976,63 +1594,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -3054,11 +1631,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -3098,341 +1671,22 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated audio.\n\n To receive the bytes of the audio directly, specify `audio/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "mpeg": { - "description": "raw bytes", - "value": "audio/mpeg" - }, - "mpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/mpeg" - }, - "wav": { - "description": "raw bytes", - "value": "audio/wav" - }, - "wavJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/wav" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS" - ] - }, - "description": "Indicates the reason the generation finished. It is always `SUCCESS` for this endpoint.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "audio/mpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated mpeg" - }, - "application/json; type=audio/mpeg": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - }, - "audio/wav": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated wav" - }, - "application/json; type=audio/wav": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/AudioGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -3463,63 +1717,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -3541,11 +1754,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -3599,341 +1808,22 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated audio.\n\n To receive the bytes of the audio directly, specify `audio/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "mpeg": { - "description": "raw bytes", - "value": "audio/mpeg" - }, - "mpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/mpeg" - }, - "wav": { - "description": "raw bytes", - "value": "audio/wav" - }, - "wavJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/wav" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS" - ] - }, - "description": "Indicates the reason the generation finished. It is always `SUCCESS` for this endpoint.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "audio/mpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated mpeg" - }, - "application/json; type=audio/mpeg": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - }, - "audio/wav": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated wav" - }, - "application/json; type=audio/wav": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/AudioGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -3964,63 +1854,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -4030,9 +1879,7 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "maxLength": 10000, - "description": "What you wish the output audio to be. A strong, descriptive prompt that clearly defines\ninstruments, moods, styles, and genre will lead to better results.\n\nYou can make a prompt as simple or complex as you like. Simple prompts are good for clean\noutput audio. Complex prompts are good for adding texture and depth to the output audio." + "$ref": "#/components/schemas/AudioPrompt" }, "duration": { "type": "number", @@ -4042,11 +1889,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -4093,341 +1936,22 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated audio.\n\n To receive the bytes of the audio directly, specify `audio/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "mpeg": { - "description": "raw bytes", - "value": "audio/mpeg" - }, - "mpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/mpeg" - }, - "wav": { - "description": "raw bytes", - "value": "audio/wav" - }, - "wavJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/wav" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS" - ] - }, - "description": "Indicates the reason the generation finished. It is always `SUCCESS` for this endpoint.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "audio/mpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated mpeg" - }, - "application/json; type=audio/mpeg": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - }, - "audio/wav": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated wav" - }, - "application/json; type=audio/wav": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/AudioGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -4459,63 +1983,22 @@ "x-launchDarklyEnableFlag": "allow-access-stable-audio-3-api", "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -4525,9 +2008,7 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "maxLength": 10000, - "description": "What you wish the output audio to be. A strong, descriptive prompt that clearly defines\ninstruments, moods, styles, and genre will lead to better results.\n\nYou can make a prompt as simple or complex as you like. Simple prompts are good for clean\noutput audio. Complex prompts are good for adding texture and depth to the output audio." + "$ref": "#/components/schemas/AudioPrompt" }, "model": { "type": "string", @@ -4545,11 +2026,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -4588,231 +2065,31 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] + "$ref": "#/components/schemas/AsyncGenerationResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, "/v2beta/audio/stable-audio/audio-to-audio": { "post": { - "middleware": [ - null - ], "tags": [ "Stable Audio" ], @@ -4838,63 +2115,22 @@ "x-launchDarklyEnableFlag": "allow-access-stable-audio-3-api", "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -4904,9 +2140,7 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "maxLength": 10000, - "description": "What you wish the output audio to be. A strong, descriptive prompt that clearly defines\ninstruments, moods, styles, and genre will lead to better results.\n\nYou can make a prompt as simple or complex as you like. Simple prompts are good for clean\noutput audio. Complex prompts are good for adding texture and depth to the output audio." + "$ref": "#/components/schemas/AudioPrompt" }, "model": { "type": "string", @@ -4924,11 +2158,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -4981,231 +2211,31 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] + "$ref": "#/components/schemas/AsyncGenerationResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, "/v2beta/audio/stable-audio/inpaint": { "post": { - "middleware": [ - null - ], "tags": [ "Stable Audio" ], @@ -5231,63 +2261,22 @@ "x-launchDarklyEnableFlag": "allow-access-stable-audio-3-api", "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -5297,9 +2286,7 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "maxLength": 10000, - "description": "What you wish the output audio to be. A strong, descriptive prompt that clearly defines\ninstruments, moods, styles, and genre will lead to better results.\n\nYou can make a prompt as simple or complex as you like. Simple prompts are good for clean\noutput audio. Complex prompts are good for adding texture and depth to the output audio." + "$ref": "#/components/schemas/AudioPrompt" }, "model": { "type": "string", @@ -5317,11 +2304,7 @@ "description": "Controls the duration in seconds of the generated audio." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "steps": { "type": "integer", @@ -5379,222 +2362,25 @@ "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] + "$ref": "#/components/schemas/AsyncGenerationResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Copyrighted Content Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "copyrighted_content", - "errors": [ - "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." - ] - } - } - } - } - } + "$ref": "#/components/responses/AudioClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -5636,192 +2422,29 @@ "in": "path" }, { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "default": "audio/*", - "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", - "enum": [ - "audio/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptAudio" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated audio.\n\n To receive the bytes of the audio directly, specify `audio/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "mpeg": { - "description": "raw bytes", - "value": "audio/mpeg" - }, - "mpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/mpeg" - }, - "wav": { - "description": "raw bytes", - "value": "audio/wav" - }, - "wavJSON": { - "description": "base64 encoded", - "value": "application/json; type=audio/wav" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS" - ] - }, - "description": "Indicates the reason the generation finished. It is always `SUCCESS` for this endpoint.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, + "$ref": "#/components/responses/AudioGenerationSuccess" + }, + "202": { + "description": "Your generation is still in-progress.", "content": { - "audio/mpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated mpeg" - }, - "application/json; type=audio/mpeg": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - }, - "audio/wav": { - "schema": { - "type": "string", - "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated wav" - }, - "application/json; type=audio/wav": { - "schema": { - "type": "object", - "properties": { - "audio": { - "type": "string", - "description": "The generated audio, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS" - ], - "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", - "example": "SUCCESS" - } - }, - "required": [ - "audio", - "finish_reason" - ] - } - } - } - }, - "202": { - "description": "Your generation is still in-progress.", - "content": { - "application/json": { + "application/json": { "schema": { "type": "object", "properties": { @@ -5845,138 +2468,13 @@ } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "404": { - "description": "id: the generation either does not exist or has expired.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2bca35116bc5431d6dc4b4ea2ef3da2f", - "name": "generation_not_found", - "errors": [ - "id: the generation either does not exist or has expired." - ] - } - } - } - } + "$ref": "#/components/responses/GenerationNotFound" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -6007,63 +2505,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -6079,22 +2536,13 @@ "example": "./some/image.png" }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -6120,959 +2568,526 @@ }, "responses": { "200": { - "description": "Upscale was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" + "$ref": "#/components/responses/ImageUpscaleSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + } + }, + "/v2beta/stable-image/upscale/creative": { + "post": { + "tags": [ + "Upscale" + ], + "summary": "Creative Upscale (async)", + "description": "Takes images between 64x64 and 1 megapixel and upscales them all the way to **4K** resolution. Put more\ngenerally, it can upscale images ~20-40x times while preserving, and often enhancing, quality.\nCreative Upscale **works best on highly degraded images and is not for photos of 1mp or above** as it performs\nheavy reimagining (controlled by creativity scale).\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=QXxi9tfI425t)\n\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `creativity`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Results\nAfter invoking this endpoint with the required parameters, use the `id` in the response to poll for results at the\n[results/{id} endpoint](#tag/Results/paths/~1v2beta~1results~1%7Bid%7D/get). Rate-limiting or other errors may occur if you poll more than once every 10 seconds.\n\n### Credits\nFlat rate of 60 credits per successful generation. You will not be charged for failed generations.", + "x-codeSamples": [ + { + "lang": "python", + "label": "Python", + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/upscale/creative\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./kitten-in-space.png\", \"rb\")\n },\n data={\n \"prompt\": \"cute fluffy white kitten floating in space, pastel colors\",\n \"output_format\": \"webp\",\n },\n)\n\nprint(\"Generation ID:\", response.json().get('id'))" + }, + { + "lang": "javascript", + "label": "JavaScript", + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./kitten-in-space.png\"),\n prompt: \"cute fluffy white kitten floating in space, pastel colors\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/upscale/creative`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`\n },\n },\n);\n\nconsole.log(\"Generation ID:\", response.data.id);" + }, + { + "lang": "terminal", + "label": "cURL", + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/upscale/creative\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -F image=@\"./kitten-in-rainforest.png\" \\\n -F prompt=\"cute fluffy white kitten sitting in a rainforest, pastel colors\" \\\n -F output_format=webp \\\n -o \"./output.json\"" + } + ], + "parameters": [ + { + "$ref": "#/components/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/FormDataContentType" + }, + { + "$ref": "#/components/parameters/StabilityClientID" + }, + { + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The image you wish to upscale.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 1,048,576 pixels", + "format": "binary", + "example": "./some/image.png" }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" + "prompt": { + "$ref": "#/components/schemas/Prompt" }, - "png": { - "description": "raw bytes", - "value": "image/png" + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" + "output_format": { + "type": "string", + "enum": [ + "jpeg", + "png", + "webp" + ], + "default": "png", + "description": "Dictates the `content-type` of the generated image." }, - "webp": { - "description": "raw bytes", - "value": "image/webp" + "seed": { + "$ref": "#/components/schemas/Seed" }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" + "creativity": { + "type": "number", + "minimum": 0.1, + "maximum": 0.5, + "default": 0.3, + "description": "Indicates how creative the model should be when upscaling an image.\nHigher values will result in more details being added to the image during upscaling." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" } }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } + "required": [ + "image", + "prompt" + ] } } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", + } + }, + "responses": { + "200": { + "description": "Upscale was started.", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] + "$ref": "#/components/schemas/GenerationID" } }, "required": [ - "id", - "name", - "errors" + "id" ] } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/upscale/creative": { - "post": { - "tags": [ - "Upscale" - ], - "summary": "Creative Upscale (async)", - "description": "Takes images between 64x64 and 1 megapixel and upscales them all the way to **4K** resolution. Put more\ngenerally, it can upscale images ~20-40x times while preserving, and often enhancing, quality.\nCreative Upscale **works best on highly degraded images and is not for photos of 1mp or above** as it performs\nheavy reimagining (controlled by creativity scale).\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=QXxi9tfI425t)\n\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `creativity`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Results\nAfter invoking this endpoint with the required parameters, use the `id` in the response to poll for results at the\n[results/{id} endpoint](#tag/Results/paths/~1v2beta~1results~1%7Bid%7D/get). Rate-limiting or other errors may occur if you poll more than once every 10 seconds.\n\n### Credits\nFlat rate of 60 credits per successful generation. You will not be charged for failed generations.", + "/v2beta/stable-image/upscale/creative/result/{id}": { + "get": { + "tags": [], + "summary": "Fetch Creative Upscale result", + "description": "Fetch the result of an upscale generation by ID. \n\nMake sure to use the same API key to fetch the generation result that you used to create the generation, \notherwise you will receive a `404` response.\n\n### How to use\nPlease invoke this endpoint with a `GET` request.\n\nThe headers of the request must include an API key in the `authorization` field and the ID\nof your generation must be in the path.\n\n### How is progress reported?\nYour generation is either `in-progress` (i.e. status code `202`) or it is complete (i.e. status code `200`). \nWe may add more fine-grained progress reporting in the future (e.g. a numerical progress).\n\n### How long are results stored?\nResults are stored for 24 hours after generation. After that, the results are deleted.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/upscale/creative\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./kitten-in-space.png\", \"rb\")\n },\n data={\n \"prompt\": \"cute fluffy white kitten floating in space, pastel colors\",\n \"output_format\": \"webp\",\n },\n)\n\nprint(\"Generation ID:\", response.json().get('id'))" + "source": "import requests\n\ngeneration_id = \"e52772ac75b...\"\n\nresponse = requests.request(\n \"GET\",\n f\"https://api.stability.ai/v2beta/stable-image/upscale/creative/result/{generation_id}\",\n headers={\n 'accept': \"image/*\", # Use 'application/json' to receive base64 encoded JSON\n 'authorization': f\"Bearer sk-MYAPIKEY\"\n },\n)\n\nif response.status_code == 202:\n print(\"Generation in-progress, try again in 10 seconds.\")\nelif response.status_code == 200:\n print(\"Generation complete!\")\n with open(\"upscaled.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./kitten-in-space.png\"),\n prompt: \"cute fluffy white kitten floating in space, pastel colors\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/upscale/creative`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`\n },\n },\n);\n\nconsole.log(\"Generation ID:\", response.data.id);" + "source": "import axios from \"axios\";\nimport fs from \"node:fs\";\n\nconst generationID = \"e52772ac75b...\";\n\nconst response = await axios.request({\n url: `https://api.stability.ai/v2beta/stable-image/upscale/creative/result/${generationID}`,\n method: \"GET\",\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\", // Use 'application/json' to receive base64 encoded JSON\n },\n});\n\nif (response.status === 202) {\n console.log(\"Generation is still running, try again in 10 seconds.\");\n} else if (response.status === 200) {\n console.log(\"Generation is complete!\");\n fs.writeFileSync(\"upscaled.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`Response ${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/upscale/creative\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -F image=@\"./kitten-in-rainforest.png\" \\\n -F prompt=\"cute fluffy white kitten sitting in a rainforest, pastel colors\" \\\n -F output_format=webp \\\n -o \"./output.json\"" + "source": "generation_id=\"e52772ac75b...\"\nurl=\"https://api.stability.ai/v2beta/stable-image/upscale/creative/result/$generation_id\"\nhttp_status=$(curl -sS -f -o \"./upscaled.webp\" -w '%{http_code}' -H \"authorization: sk-MYAPIKEY\" -H 'accept: image/*' \"$url\")\n\ncase $http_status in\n 202)\n echo \"Still processing. Retrying in 10 seconds...\"\n ;;\n 200)\n echo \"Download complete!\"\n ;;\n 4*|5*)\n mv \"./upscaled.webp\" \"./error.json\"\n echo \"Error: Check ./error.json for details.\"\n exit 1\n ;;\nesac" } ], "parameters": [ { "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 + "$ref": "#/components/schemas/GenerationID" }, "required": true, - "name": "authorization", - "in": "header" + "name": "id", + "in": "path" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" } ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The image you wish to upscale.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 1,048,576 pixels", - "format": "binary", - "example": "./some/image.png" + "responses": { + "200": { + "description": "Upscale finished.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "examples": { + "jpeg": { + "description": "raw bytes", + "value": "image/jpeg" }, - "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "jpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/jpeg" }, - "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." - }, - "output_format": { - "type": "string", - "enum": [ - "jpeg", - "png", - "webp" - ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." + "png": { + "description": "raw bytes", + "value": "image/png" }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "pngJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/png" }, - "creativity": { - "type": "number", - "minimum": 0.1, - "maximum": 0.5, - "default": 0.3, - "description": "Indicates how creative the model should be when upscaling an image.\nHigher values will result in more details being added to the image during upscaling." + "webp": { + "description": "raw bytes", + "value": "image/webp" }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." + "webpJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/webp" } }, - "required": [ - "image", - "prompt" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Upscale was started.", - "content": { - "application/json": { "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] + "type": "string" } + }, + "finish-reason": { + "$ref": "#/components/headers/ImageFinishReason" + }, + "seed": { + "$ref": "#/components/headers/Seed" } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", + }, "content": { - "application/json": { + "image/jpeg": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { + "$ref": "#/components/schemas/ImageBinaryResponse" + }, + "example": "The bytes of the generated jpeg" + }, + "application/json; type=image/jpeg": { "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" + "$ref": "#/components/schemas/ImageJSONResponse" } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { + }, + "image/png": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } + "$ref": "#/components/schemas/ImageBinaryResponse" + }, + "example": "The bytes of the generated png" + }, + "application/json; type=image/png": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { + }, + "image/webp": { "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] + "$ref": "#/components/schemas/ImageBinaryResponse" }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } + "example": "The bytes of the generated webp" + }, + "application/json; type=image/webp": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", + "202": { + "description": "Your upscale generation is still in-progress.", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" + "$ref": "#/components/schemas/GenerationID" }, - "name": { + "status": { "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] + "enum": [ + "in-progress" + ], + "description": "The status of your generation." } }, "required": [ "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } + "status" + ] } } } }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "404": { + "$ref": "#/components/responses/GenerationNotFound" + }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/upscale/creative/result/{id}": { - "get": { - "tags": [], - "summary": "Fetch Creative Upscale result", - "description": "Fetch the result of an upscale generation by ID. \n\nMake sure to use the same API key to fetch the generation result that you used to create the generation, \notherwise you will receive a `404` response.\n\n### How to use\nPlease invoke this endpoint with a `GET` request.\n\nThe headers of the request must include an API key in the `authorization` field and the ID\nof your generation must be in the path.\n\n### How is progress reported?\nYour generation is either `in-progress` (i.e. status code `202`) or it is complete (i.e. status code `200`). \nWe may add more fine-grained progress reporting in the future (e.g. a numerical progress).\n\n### How long are results stored?\nResults are stored for 24 hours after generation. After that, the results are deleted.", + "/v2beta/stable-image/upscale/fast": { + "post": { + "tags": [ + "Upscale" + ], + "summary": "Fast", + "description": "Our Fast Upscaler service enhances image resolution by 4x using predictive and generative AI. This lightweight and fast service (processing in ~1 second) is ideal for enhancing the quality of compressed images, making it suitable for social media posts and other applications.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image is 4 times that of the input image with a maximum size of 16 megapixels.\n\n### Credits\nFlat rate of 2 credit per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\ngeneration_id = \"e52772ac75b...\"\n\nresponse = requests.request(\n \"GET\",\n f\"https://api.stability.ai/v2beta/stable-image/upscale/creative/result/{generation_id}\",\n headers={\n 'accept': \"image/*\", # Use 'application/json' to receive base64 encoded JSON\n 'authorization': f\"Bearer sk-MYAPIKEY\"\n },\n)\n\nif response.status_code == 202:\n print(\"Generation in-progress, try again in 10 seconds.\")\nelif response.status_code == 200:\n print(\"Generation complete!\")\n with open(\"upscaled.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/upscale/fast\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./low-res-flower.jpg\", \"rb\"),\n },\n data={\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./flower.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import axios from \"axios\";\nimport fs from \"node:fs\";\n\nconst generationID = \"e52772ac75b...\";\n\nconst response = await axios.request({\n url: `https://api.stability.ai/v2beta/stable-image/upscale/creative/result/${generationID}`,\n method: \"GET\",\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\", // Use 'application/json' to receive base64 encoded JSON\n },\n});\n\nif (response.status === 202) {\n console.log(\"Generation is still running, try again in 10 seconds.\");\n} else if (response.status === 200) {\n console.log(\"Generation is complete!\");\n fs.writeFileSync(\"upscaled.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`Response ${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./low-res-flower.jpg\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/upscale/fast`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./flower.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "generation_id=\"e52772ac75b...\"\nurl=\"https://api.stability.ai/v2beta/stable-image/upscale/creative/result/$generation_id\"\nhttp_status=$(curl -sS -f -o \"./upscaled.webp\" -w '%{http_code}' -H \"authorization: sk-MYAPIKEY\" -H 'accept: image/*' \"$url\")\n\ncase $http_status in\n 202)\n echo \"Still processing. Retrying in 10 seconds...\"\n ;;\n 200)\n echo \"Download complete!\"\n ;;\n 4*|5*)\n mv \"./upscaled.webp\" \"./error.json\"\n echo \"Error: Check ./error.json for details.\"\n exit 1\n ;;\nesac" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/upscale/fast\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./low-res-flower.jpg\" \\\n -F output_format=\"webp\" \\\n -o \"./flower.webp\"" } ], "parameters": [ { - "schema": { - "$ref": "#/components/schemas/GenerationID" - }, - "required": true, - "name": "id", - "in": "path" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], - "responses": { - "200": { - "description": "Upscale finished.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The image you wish to upscale.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Width must be between 32 and 1,536 pixels\n- Height must be between 32 and 1,536 pixels\n- Total pixel count must be between 1,024 and 1,048,576 pixels", + "format": "binary", + "example": "./some/image.png" + }, + "output_format": { + "type": "string", + "enum": [ + "jpeg", + "png", + "webp" + ], + "default": "png", + "description": "Dictates the `content-type` of the generated image." + } + }, + "required": [ + "image" + ] + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageUpscaleSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + } + }, + "/v2beta/stable-image/edit/erase": { + "post": { + "tags": [ + "Edit" + ], + "summary": "Erase", + "description": "The Erase service removes unwanted objects, such as blemishes on portraits or items on desks, using image masks.\n\nThe mask is provided in one of two ways:\n 1. Explicitly passing in a separate image via the `mask` parameter\n 2. Derived from the alpha channel of the `image` parameter.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `mask`\n- `seed`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "x-codeSamples": [ + { + "lang": "python", + "label": "Python", + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/erase\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./kangaroo-on-the-beach.png\", \"rb\"),\n \"mask\": open(\"./mask-of-kangaroo.png\", \"rb\"),\n },\n data={\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./just-the-beach.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + }, + { + "lang": "javascript", + "label": "JavaScript", + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./kangaroo-on-the-beach.png\"),\n mask: fs.createReadStream(\"./mask-of-kangaroo.png\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/erase`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./just-the-beach.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + }, + { + "lang": "terminal", + "label": "cURL", + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/erase\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./kangaroo-on-the-beach.png\" \\\n -F mask=@\"./mask-of-kangaroo.png\" \\\n -F output_format=\"webp\" \\\n -o \"./just-the-beach.webp\"" + } + ], + "parameters": [ + { + "$ref": "#/components/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/FormDataContentType" + }, + { + "$ref": "#/components/parameters/AcceptImage" + }, + { + "$ref": "#/components/parameters/StabilityClientID" + }, + { + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The image you wish to erase from.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "format": "binary", + "example": "./some/image.png" + }, + "mask": { + "type": "string", + "description": "Controls the strength of the inpainting process on a per-pixel basis, either via a\nsecond image (passed into this parameter) or via the alpha channel of the `image` parameter.\n\n**Passing in a Mask**\n\nThe image passed to this parameter should be a black and white image that represents,\nat any pixel, the strength of inpainting based on how dark or light the given pixel is.\nCompletely black pixels represent no inpainting strength while completely white pixels\nrepresent maximum strength.\n\nIn the event the mask is a different size than the `image` parameter, it will be automatically resized.\n\n**Alpha Channel Support**\n\nIf you don't provide an explicit mask, one will be derived from the alpha channel of the `image` parameter.\nTransparent pixels will be inpainted while opaque pixels will be preserved.\n\nIn the event an `image` with an alpha channel is provided along with a `mask`, the `mask` will take precedence.", + "format": "binary", + "example": "./some/image.png" + }, + "grow_mask": { + "type": "number", + "minimum": 0, + "maximum": 20, + "default": 5, + "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." + }, + "seed": { + "$ref": "#/components/schemas/Seed" + }, + "output_format": { + "type": "string", + "enum": [ + "jpeg", + "png", + "webp" + ], + "default": "png", + "description": "Dictates the `content-type` of the generated image." + } + }, + "required": [ + "image", + "prompt" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Erase was successful.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", "examples": { "jpeg": { "description": "raw bytes", @@ -7104,395 +3119,233 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "202": { - "description": "Your upscale generation is still in-progress.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - }, - "status": { - "type": "string", - "enum": [ - "in-progress" - ], - "description": "The status of your generation." - } - }, - "required": [ - "id", - "status" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, - "404": { - "description": "id: the generation either does not exist or has expired.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2bca35116bc5431d6dc4b4ea2ef3da2f", - "name": "generation_not_found", - "errors": [ - "id: the generation either does not exist or has expired." - ] - } - } - } - } + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "429": { + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } + "$ref": "#/components/responses/InternalError" + } + } + } + }, + "/v2beta/stable-image/edit/inpaint": { + "post": { + "tags": [ + "Edit" + ], + "summary": "Inpaint", + "description": "Intelligently modify images by filling in or replacing specified areas with new content based\non the content of a \"mask\" image.\n\nThe \"mask\" is provided in one of two ways:\n 1. Explicitly passing in a separate image via the `mask` parameter\n 2. Derived from the alpha channel of the `image` parameter.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n- `prompt`\n\nOptionally, the body of the request may also include:\n- `mask`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "x-codeSamples": [ + { + "lang": "python", + "label": "Python", + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/inpaint\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./dog-wearing-vr-goggles.png\", \"rb\"),\n \"mask\": open(\"./mask.png\", \"rb\"),\n },\n data={\n \"prompt\": \"dog wearing black glasses\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./dog-wearing-black-glasses.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + }, + { + "lang": "javascript", + "label": "JavaScript", + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./dog-wearing-vr-goggles.png\"),\n mask: fs.createReadStream(\"./mask.png\"),\n prompt: \"dog wearing black glasses\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/inpaint`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./dog-wearing-black-glasses.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + }, + { + "lang": "terminal", + "label": "cURL", + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/inpaint\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./dog-wearing-vr-goggles.png\" \\\n -F mask=@\"./mask.png\" \\\n -F prompt=\"golden retriever in a field\" \\\n -F output_format=\"webp\" \\\n -o \"./dog-wearing-black-glasses.webp\"" + } + ], + "parameters": [ + { + "$ref": "#/components/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/FormDataContentType" + }, + { + "$ref": "#/components/parameters/AcceptImage" + }, + { + "$ref": "#/components/parameters/StabilityClientID" + }, + { + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The image you wish to inpaint.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "format": "binary", + "example": "./some/image.png" }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] + "prompt": { + "$ref": "#/components/schemas/Prompt" + }, + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" + }, + "mask": { + "type": "string", + "description": "Controls the strength of the inpainting process on a per-pixel basis, either via a\nsecond image (passed into this parameter) or via the alpha channel of the `image` parameter.\n\n**Passing in a Mask**\n\nThe image passed to this parameter should be a black and white image that represents,\nat any pixel, the strength of inpainting based on how dark or light the given pixel is.\nCompletely black pixels represent no inpainting strength while completely white pixels\nrepresent maximum strength.\n\nIn the event the mask is a different size than the `image` parameter, it will be automatically resized.\n\n**Alpha Channel Support**\n\nIf you don't provide an explicit mask, one will be derived from the alpha channel of the `image` parameter.\nTransparent pixels will be inpainted while opaque pixels will be preserved.\n\nIn the event an `image` with an alpha channel is provided along with a `mask`, the `mask` will take precedence.", + "format": "binary", + "example": "./some/image.png" + }, + "grow_mask": { + "type": "number", + "minimum": 0, + "maximum": 100, + "default": 5, + "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." + }, + "seed": { + "$ref": "#/components/schemas/Seed" + }, + "output_format": { + "type": "string", + "enum": [ + "jpeg", + "png", + "webp" + ], + "default": "png", + "description": "Dictates the `content-type` of the generated image." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" } - } + }, + "required": [ + "image", + "prompt" + ] } } } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageInpaintSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } } } }, - "/v2beta/stable-image/upscale/fast": { + "/v2beta/stable-image/edit/outpaint": { "post": { "tags": [ - "Upscale" + "Edit" ], - "summary": "Fast", - "description": "Our Fast Upscaler service enhances image resolution by 4x using predictive and generative AI. This lightweight and fast service (processing in ~1 second) is ideal for enhancing the quality of compressed images, making it suitable for social media posts and other applications.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image is 4 times that of the input image with a maximum size of 16 megapixels.\n\n### Credits\nFlat rate of 2 credit per successful generation. You will not be charged for failed generations.", + "summary": "Outpaint", + "description": "The Outpaint service inserts additional content in an image to fill in the space in any direction.\nCompared to other automated or manual attempts to expand the content in an image, the Outpaint service\nshould minimize artifacts and signs that the original image has been edited.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=bZ2yK7VQSgLw)\n\n### How to use\n\nPlease invoke this endpoint with a POST request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nAlong with _at least one_ outpaint direction:\n- `left`\n- `right`\n- `up`\n- `down`\n\n> **Note:** for best quality use outpaint direction values smaller or equal to your source image dimensions.\n\nEach of these parameters should be set to a number between 0 and 2000, representing the number of pixels to outpaint in that direction.\n\nOptionally, the body of the request may also include:\n- `prompt`\n- `seed`\n- `output_format`\n- `creativity`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Credits\nFlat rate of 4 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/upscale/fast\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./low-res-flower.jpg\", \"rb\"),\n },\n data={\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./flower.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/outpaint\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"left\": 200,\n \"down\": 200,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./husky-in-a-huge-field.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./low-res-flower.jpg\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/upscale/fast`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./flower.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n left: 200,\n down: 200,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/outpaint`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./husky-in-a-huge-field.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/upscale/fast\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./low-res-flower.jpg\" \\\n -F output_format=\"webp\" \\\n -o \"./flower.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/outpaint\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F left=200 \\\n -F bottom=200 \\\n -F output_format=\"webp\" \\\n -o \"./husky-in-a-huge-field.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -7503,19 +3356,71 @@ "properties": { "image": { "type": "string", - "description": "The image you wish to upscale.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Width must be between 32 and 1,536 pixels\n- Height must be between 32 and 1,536 pixels\n- Total pixel count must be between 1,024 and 1,048,576 pixels", + "description": "The image you wish to outpaint.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", "format": "binary", "example": "./some/image.png" }, + "left": { + "type": "integer", + "minimum": 0, + "maximum": 2000, + "default": 0, + "description": "The number of pixels to outpaint on the left side of the image. At least one outpainting direction must be supplied with a non-zero value." + }, + "right": { + "type": "integer", + "minimum": 0, + "maximum": 2000, + "default": 0, + "description": "The number of pixels to outpaint on the right side of the image. At least one outpainting direction must be supplied with a non-zero value." + }, + "up": { + "type": "integer", + "minimum": 0, + "maximum": 2000, + "default": 0, + "description": "The number of pixels to outpaint on the top of the image. At least one outpainting direction must be supplied with a non-zero value." + }, + "down": { + "type": "integer", + "minimum": 0, + "maximum": 2000, + "default": 0, + "description": "The number of pixels to outpaint on the bottom of the image. At least one outpainting direction must be supplied with a non-zero value." + }, + "creativity": { + "allOf": [ + { + "$ref": "#/components/schemas/Creativity" + }, + { + "minimum": 0, + "maximum": 1, + "default": 0.5 + } + ] + }, + "prompt": { + "type": "string", + "minLength": 0, + "maxLength": 10000, + "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + }, + "seed": { + "$ref": "#/components/schemas/Seed" + }, "output_format": { "type": "string", "enum": [ - "jpeg", "png", + "jpeg", "webp" ], "default": "png", "description": "Dictates the `content-type` of the generated image." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" } }, "required": [ @@ -7527,25 +3432,14 @@ }, "responses": { "200": { - "description": "Upscale was successful.", + "description": "Outpainting was successful.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", "examples": { - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, "png": { "description": "raw bytes", "value": "image/png" @@ -7554,6 +3448,14 @@ "description": "base64 encoded", "value": "application/json; type=image/png" }, + "jpeg": { + "description": "raw bytes", + "value": "image/jpeg" + }, + "jpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/jpeg" + }, "webp": { "description": "raw bytes", "value": "image/webp" @@ -7568,486 +3470,111 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { + "image/png": { + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + }, + "example": "The bytes of the generated png" + }, + "application/json; type=image/png": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/erase": { + "/v2beta/stable-image/edit/search-and-replace": { "post": { "tags": [ "Edit" ], - "summary": "Erase", - "description": "The Erase service removes unwanted objects, such as blemishes on portraits or items on desks, using image masks.\n\nThe mask is provided in one of two ways:\n 1. Explicitly passing in a separate image via the `mask` parameter\n 2. Derived from the alpha channel of the `image` parameter.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `mask`\n- `seed`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Search and Replace", + "description": "The Search and Replace service is a specific version of inpainting that does not require a mask.\nInstead, users can leverage a `search_prompt` to identify an object in simple language to be replaced.\nThe service will automatically segment the object and replace it with the object requested in the prompt.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=0lDpGa2jAmAs)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n- `search_prompt`\n\nThe body may optionally include:\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/erase\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./kangaroo-on-the-beach.png\", \"rb\"),\n \"mask\": open(\"./mask-of-kangaroo.png\", \"rb\"),\n },\n data={\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./just-the-beach.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/search-and-replace\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"prompt\": \"golden retriever in a field\",\n \"search_prompt\": \"dog\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./golden-retriever-in-a-field.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./kangaroo-on-the-beach.png\"),\n mask: fs.createReadStream(\"./mask-of-kangaroo.png\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/erase`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./just-the-beach.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n prompt: \"golden retriever standing in a field\",\n search_prompt: \"dog\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/search-and-replace`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\"\n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./golden-retriever-in-a-field.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/erase\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./kangaroo-on-the-beach.png\" \\\n -F mask=@\"./mask-of-kangaroo.png\" \\\n -F output_format=\"webp\" \\\n -o \"./just-the-beach.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/search-and-replace\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F prompt=\"golden retriever in a field\" \\\n -F search_prompt=\"dog\" \\\n -F output_format=\"webp\" \\\n -o \"./golden-retriever-in-a-field.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -8058,29 +3585,31 @@ "properties": { "image": { "type": "string", - "description": "The image you wish to erase from.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "description": "An image containing content you wish to replace.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", "format": "binary", "example": "./some/image.png" }, - "mask": { + "prompt": { + "$ref": "#/components/schemas/Prompt" + }, + "search_prompt": { "type": "string", - "description": "Controls the strength of the inpainting process on a per-pixel basis, either via a\nsecond image (passed into this parameter) or via the alpha channel of the `image` parameter.\n\n**Passing in a Mask**\n\nThe image passed to this parameter should be a black and white image that represents,\nat any pixel, the strength of inpainting based on how dark or light the given pixel is.\nCompletely black pixels represent no inpainting strength while completely white pixels\nrepresent maximum strength.\n\nIn the event the mask is a different size than the `image` parameter, it will be automatically resized.\n\n**Alpha Channel Support**\n\nIf you don't provide an explicit mask, one will be derived from the alpha channel of the `image` parameter.\nTransparent pixels will be inpainted while opaque pixels will be preserved.\n\nIn the event an `image` with an alpha channel is provided along with a `mask`, the `mask` will take precedence.", - "format": "binary", - "example": "./some/image.png" + "maxLength": 10000, + "description": "Short description of what to inpaint in the `image`.", + "example": "glasses" + }, + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" }, "grow_mask": { "type": "number", "minimum": 0, "maximum": 20, - "default": 5, + "default": 3, "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -8091,11 +3620,15 @@ ], "default": "png", "description": "Dictates the `content-type` of the generated image." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" } }, "required": [ "image", - "prompt" + "prompt", + "search_prompt" ] } } @@ -8103,13 +3636,10 @@ }, "responses": { "200": { - "description": "Erase was successful.", + "description": "Search-and-Replace was successful.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -8144,426 +3674,111 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/inpaint": { + "/v2beta/stable-image/edit/search-and-recolor": { "post": { "tags": [ "Edit" ], - "summary": "Inpaint", - "description": "Intelligently modify images by filling in or replacing specified areas with new content based\non the content of a \"mask\" image.\n\nThe \"mask\" is provided in one of two ways:\n 1. Explicitly passing in a separate image via the `mask` parameter\n 2. Derived from the alpha channel of the `image` parameter.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=t1Q4w2uvvza0)\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n- `prompt`\n\nOptionally, the body of the request may also include:\n- `mask`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Search and Recolor", + "description": "The Search and Recolor service provides the ability to change the color of a specific object in an image using a prompt.\nThis service is a specific version of inpainting that does not require a mask. The Search and Recolor\nservice will automatically segment the object and recolor it using the colors requested in the prompt.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=mtgSh4Stj3l)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n- `select_prompt`\n\nThe body may optionally include:\n- `grow_mask`\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match the resolution of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/inpaint\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./dog-wearing-vr-goggles.png\", \"rb\"),\n \"mask\": open(\"./mask.png\", \"rb\"),\n },\n data={\n \"prompt\": \"dog wearing black glasses\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./dog-wearing-black-glasses.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./red-car.png\", \"rb\")\n },\n data={\n \"prompt\": \"a yellow car\",\n \"select_prompt\": \"car\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./yellow-car.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./dog-wearing-vr-goggles.png\"),\n mask: fs.createReadStream(\"./mask.png\"),\n prompt: \"dog wearing black glasses\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/inpaint`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./dog-wearing-black-glasses.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./red-car.png\"),\n prompt: \"a yellow car\",\n select_prompt: \"car\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\"\n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./yellow-car.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/inpaint\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./dog-wearing-vr-goggles.png\" \\\n -F mask=@\"./mask.png\" \\\n -F prompt=\"golden retriever in a field\" \\\n -F output_format=\"webp\" \\\n -o \"./dog-wearing-black-glasses.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./red-car.png\" \\\n -F prompt=\"a yellow car\" \\\n -F select_prompt=\"car\" \\\n -F output_format=\"webp\" \\\n -o \"./yellow-car.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -8574,40 +3789,31 @@ "properties": { "image": { "type": "string", - "description": "The image you wish to inpaint.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "description": "An image containing content you wish to recolor.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", "format": "binary", "example": "./some/image.png" }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, - "negative_prompt": { + "select_prompt": { "type": "string", "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "description": "Short description of what to search for in the `image`.", + "example": "glasses" }, - "mask": { - "type": "string", - "description": "Controls the strength of the inpainting process on a per-pixel basis, either via a\nsecond image (passed into this parameter) or via the alpha channel of the `image` parameter.\n\n**Passing in a Mask**\n\nThe image passed to this parameter should be a black and white image that represents,\nat any pixel, the strength of inpainting based on how dark or light the given pixel is.\nCompletely black pixels represent no inpainting strength while completely white pixels\nrepresent maximum strength.\n\nIn the event the mask is a different size than the `image` parameter, it will be automatically resized.\n\n**Alpha Channel Support**\n\nIf you don't provide an explicit mask, one will be derived from the alpha channel of the `image` parameter.\nTransparent pixels will be inpainted while opaque pixels will be preserved.\n\nIn the event an `image` with an alpha channel is provided along with a `mask`, the `mask` will take precedence.", - "format": "binary", - "example": "./some/image.png" + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" }, "grow_mask": { "type": "number", "minimum": 0, - "maximum": 100, - "default": 5, + "maximum": 20, + "default": 3, "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -8620,32 +3826,13 @@ "description": "Dictates the `content-type` of the generated image." }, "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." + "$ref": "#/components/schemas/StylePreset" } }, "required": [ "image", - "prompt" + "prompt", + "select_prompt" ] } } @@ -8653,13 +3840,10 @@ }, "responses": { "200": { - "description": "Inpainting was successful.", + "description": "Search-and-Recolor was successful.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -8694,486 +3878,111 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/outpaint": { + "/v2beta/stable-image/edit/remove-background": { "post": { "tags": [ "Edit" ], - "summary": "Outpaint", - "description": "The Outpaint service inserts additional content in an image to fill in the space in any direction.\nCompared to other automated or manual attempts to expand the content in an image, the Outpaint service\nshould minimize artifacts and signs that the original image has been edited.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=bZ2yK7VQSgLw)\n\n### How to use\n\nPlease invoke this endpoint with a POST request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request must include:\n- `image`\n\nAlong with _at least one_ outpaint direction:\n- `left`\n- `right`\n- `up`\n- `down`\n\n> **Note:** for best quality use outpaint direction values smaller or equal to your source image dimensions.\n\nEach of these parameters should be set to a number between 0 and 2000, representing the number of pixels to outpaint in that direction.\n\nOptionally, the body of the request may also include:\n- `prompt`\n- `seed`\n- `output_format`\n- `creativity`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Credits\nFlat rate of 4 credits per successful generation. You will not be charged for failed generations.", + "summary": "Remove Background", + "description": "The Remove Background service accurately segments the foreground from an image and implements \nand removes the background.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=VHofb3LAVmqi)\n\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n \nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/outpaint\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"left\": 200,\n \"down\": 200,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./husky-in-a-huge-field.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/remove-background\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./husky.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n left: 200,\n down: 200,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/outpaint`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./husky-in-a-huge-field.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/remove-background`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./husky.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/outpaint\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F left=200 \\\n -F bottom=200 \\\n -F output_format=\"webp\" \\\n -o \"./husky-in-a-huge-field.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/remove-background\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F output_format=\"webp\" \\\n -o \"./husky.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -9184,95 +3993,18 @@ "properties": { "image": { "type": "string", - "description": "The image you wish to outpaint.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", + "description": "The image whose background you wish to remove.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 4,194,304 pixels", "format": "binary", "example": "./some/image.png" }, - "left": { - "type": "integer", - "minimum": 0, - "maximum": 2000, - "default": 0, - "description": "The number of pixels to outpaint on the left side of the image. At least one outpainting direction must be supplied with a non-zero value." - }, - "right": { - "type": "integer", - "minimum": 0, - "maximum": 2000, - "default": 0, - "description": "The number of pixels to outpaint on the right side of the image. At least one outpainting direction must be supplied with a non-zero value." - }, - "up": { - "type": "integer", - "minimum": 0, - "maximum": 2000, - "default": 0, - "description": "The number of pixels to outpaint on the top of the image. At least one outpainting direction must be supplied with a non-zero value." - }, - "down": { - "type": "integer", - "minimum": 0, - "maximum": 2000, - "default": 0, - "description": "The number of pixels to outpaint on the bottom of the image. At least one outpainting direction must be supplied with a non-zero value." - }, - "creativity": { - "allOf": [ - { - "$ref": "#/components/schemas/Creativity" - }, - { - "minimum": 0, - "maximum": 1, - "default": 0.5 - } - ] - }, - "prompt": { - "type": "string", - "minLength": 0, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" - }, "output_format": { "type": "string", "enum": [ "png", - "jpeg", "webp" ], "default": "png", "description": "Dictates the `content-type` of the generated image." - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." } }, "required": [ @@ -9284,13 +4016,10 @@ }, "responses": { "200": { - "description": "Outpainting was successful.", + "description": "Background successfully removed.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -9303,14 +4032,6 @@ "description": "base64 encoded", "value": "application/json; type=image/png" }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, "webp": { "description": "raw bytes", "value": "image/webp" @@ -9325,486 +4046,94 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/search-and-replace": { + "/v2beta/stable-image/edit/replace-background-and-relight": { "post": { "tags": [ "Edit" ], - "summary": "Search and Replace", - "description": "The Search and Replace service is a specific version of inpainting that does not require a mask.\nInstead, users can leverage a `search_prompt` to identify an object in simple language to be replaced.\nThe service will automatically segment the object and replace it with the object requested in the prompt.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=0lDpGa2jAmAs)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n- `search_prompt`\n\nThe body may optionally include:\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 4 megapixels.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Replace Background and Relight (async)", + "description": "The Replace Background and Relight edit service lets users swap backgrounds with\nAI-generated or uploaded images while adjusting lighting to match the subject. This\nnew API provides a streamlined image editing solution and can serve e-commerce, real\nestate, photography, and creative projects.\n\nSome of the things you can do include:\n - Background Replacement: Remove existing background and add new ones.\n - AI Background Generation: Create new backgrounds using AI generated images based on prompts.\n - Relighting: Adjust lighting in images that are under or overexposed.\n - Flexible Inputs: Use your own background image or generate one.\n - Lighting Adjustments: Modify light reference, direction, and strength.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=mtgSh4Stj3l)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`.\n\nThe body of the request should include:\n- `subject_image`\n- `background_prompt` and/or `background_reference`\n\nThe body may optionally include:\n- `light_reference` or `light_source_direction`\n- `light_source_strength` (requires `light_reference` or `light_source_direction`)\n- `foreground_prompt`\n- `negative_prompt`\n- `preserve_original_subject`\n- `original_background_depth`\n- `keep_original_background`\n- `light_source_strength`\n- `seed`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Results\nAfter invoking this endpoint with the required parameters, use the `id` in the response to poll for results at the\n[results/{id} endpoint](#tag/Results/paths/~1v2beta~1results~1%7Bid%7D/get). Rate-limiting or other errors may occur if you poll more than once every 10 seconds.\n\n### Credits\nFlat rate of 8 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/search-and-replace\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"prompt\": \"golden retriever in a field\",\n \"search_prompt\": \"dog\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./golden-retriever-in-a-field.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"subject_image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"background_prompt\": \"cinematic lighting\",\n \"output_format\": \"webp\",\n },\n)\n\nprint(\"Generation ID:\", response.json().get('id'))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n prompt: \"golden retriever standing in a field\",\n search_prompt: \"dog\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/search-and-replace`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\"\n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./golden-retriever-in-a-field.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n subject_image: fs.createReadStream(\"./husky-in-a-field.png\"),\n background_prompt: \"cinematic lighting\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n },\n },\n);\n\nconsole.log(\"Generation ID:\", response.data.id);" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/search-and-replace\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F prompt=\"golden retriever in a field\" \\\n -F search_prompt=\"dog\" \\\n -F output_format=\"webp\" \\\n -o \"./golden-retriever-in-a-field.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F subject_image=@\"./husky-in-a-field.png\" \\\n -F background_prompt=\"cinematic lighting\" \\\n -F output_format=\"webp\" \\\n -o \"./output.json\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -9813,42 +4142,79 @@ "schema": { "type": "object", "properties": { - "image": { + "subject_image": { "type": "string", - "description": "An image containing content you wish to replace.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", + "description": "An image containing the subject that you wish to change background and relight.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", "format": "binary", "example": "./some/image.png" }, - "prompt": { + "background_reference": { "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "description": "An image whose style you wish to use in the background. Similar to the Control: Style API,\nstylistic elements from this image are added to the background.\n\n> **Important:** either `background_reference` or `background_prompt` must be provided.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "format": "binary", + "example": "./some/image.png" }, - "search_prompt": { + "background_prompt": { "type": "string", "maxLength": 10000, - "description": "Short description of what to inpaint in the `image`.", - "example": "glasses" + "description": "What you wish to see in the background of the output image. This could be a description\nof the desired background scene, or just a description of the lighting if modifying the\nlight source through `light_source_direction` or `light_reference`.\n\n> **Important:** either `background_reference` or `background_prompt` must be provided." }, - "negative_prompt": { + "foreground_prompt": { "type": "string", "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "description": "Description of the subject. Use this to prevent elements of the background from\nbleeding into the subject. For example, if you find your subject is turning\ngreen with a forest in the background, try putting a short description of the\nsubject in this field." }, - "grow_mask": { + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" + }, + "preserve_original_subject": { "type": "number", "minimum": 0, - "maximum": 20, - "default": 3, - "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." + "maximum": 1, + "default": 0.6, + "description": "How much to overlay the original subject to exactly match the original image. A\n1.0 is an exact pixel match for the subject, and 0.0 is a close match but will\nhave new lighting qualities. This is an advanced feature." }, - "seed": { + "original_background_depth": { "type": "number", "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "maximum": 1, + "default": 0.5, + "description": "Controls the generated background to have the same depth as the original subject image. This is an advanced feature." + }, + "keep_original_background": { + "type": "string", + "enum": [ + "true", + "false" + ], + "default": "false", + "description": "Whether to keep the background of the original image. When this is on, the background\nwill have different lighting than the original image that changes based on the other\nparameters in this API." + }, + "light_source_direction": { + "type": "string", + "enum": [ + "left", + "right", + "above", + "below" + ], + "description": "Direction of the light source." + }, + "light_reference": { + "type": "string", + "description": "An image with the desired lighting. Lighter sections of the light_reference image will correspond to sections with brighter lighting in the output image.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", + "format": "binary", + "example": "./some/image.png" + }, + "light_source_strength": { + "type": "number", + "minimum": 0, + "maximum": 1, + "default": 0.3, + "description": "If using `light_reference_image` or `light_source_direction`, controls the strength\nof the light source. 1.0 is brighter and 0.0 is dimmer. This is an advanced feature.\n\n> **Important:** Use of this parameter requires `light_reference` or `light_source_direction` to be provided." + }, + "seed": { + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -9859,35 +4225,10 @@ ], "default": "png", "description": "Dictates the `content-type` of the generated image." - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." } }, "required": [ - "image", - "prompt", - "search_prompt" + "subject_image" ] } } @@ -9895,527 +4236,78 @@ }, "responses": { "200": { - "description": "Search-and-Replace was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", + "description": "Replace Background and Relight was started.", + "content": { + "application/json": { "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/AsyncGenerationResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/search-and-recolor": { + "/v2beta/stable-image/generate/ultra": { "post": { "tags": [ - "Edit" + "Generate" ], - "summary": "Search and Recolor", - "description": "The Search and Recolor service provides the ability to change the color of a specific object in an image using a prompt.\nThis service is a specific version of inpainting that does not require a mask. The Search and Recolor\nservice will automatically segment the object and recolor it using the colors requested in the prompt.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=mtgSh4Stj3l)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n- `select_prompt`\n\nThe body may optionally include:\n- `grow_mask`\n- `seed`\n- `negative_prompt`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match the resolution of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Stable Image Ultra", + "description": "Our most advanced text to image generation service, Stable Image Ultra creates the highest quality images\nwith unprecedented prompt understanding. Ultra excels in typography, complex compositions, dynamic lighting,\nvibrant hues, and overall cohesion and structure of an art piece. Made from the most advanced models,\nincluding Stable Diffusion 3.5, Ultra offers the best of the Stable Diffusion ecosystem.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=yXhs626oZdr1)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`. The accept header should be set to one of the following:\n- `image/*` to receive the image in the format specified by the `output_format` parameter.\n- `application/json` to receive the image in the format specified by the `output_format` parameter, but encoded to base64 in a JSON response.\n\nThe only required parameter is the `prompt` field, which should contain the text prompt for the image generation.\n\nThe body of the request should include:\n- `prompt` - text to generate the image from\n\nThe body may optionally include:\n- `image` - the image to use as the starting point for the generation\n- `strength` - controls how much influence the `image` parameter has on the output image\n- `aspect_ratio` - the aspect ratio of the output image\n- `negative_prompt` - keywords of what you **do not** wish to see in the output image\n- `seed` - the randomness seed to use for the generation\n- `output_format` - the format of the output image\n\n> **Note:** for the full list of optional parameters, please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1 megapixel. The default resolution is 1024x1024.\n\n### Credits\nThe Ultra service uses 8 credits per successful result. You will not be charged for failed results.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./red-car.png\", \"rb\")\n },\n data={\n \"prompt\": \"a yellow car\",\n \"select_prompt\": \"car\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./yellow-car.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/ultra\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./red-car.png\"),\n prompt: \"a yellow car\",\n select_prompt: \"car\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\"\n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./yellow-car.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/ultra`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/search-and-recolor\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./red-car.png\" \\\n -F prompt=\"a yellow car\" \\\n -F select_prompt=\"car\" \\\n -F output_format=\"webp\" \\\n -o \"./yellow-car.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/ultra\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"webp\" \\\n -o \"./lighthouse.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -10424,42 +4316,17 @@ "schema": { "type": "object", "properties": { - "image": { - "type": "string", - "description": "An image containing content you wish to recolor.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", - "format": "binary", - "example": "./some/image.png" - }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." - }, - "select_prompt": { - "type": "string", - "maxLength": 10000, - "description": "Short description of what to search for in the `image`.", - "example": "glasses" + "$ref": "#/components/schemas/Prompt" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, - "grow_mask": { - "type": "number", - "minimum": 0, - "maximum": 20, - "default": 3, - "description": "Grows the edges of the mask outward in all directions by the specified number of pixels. The expanded area around the mask will be blurred, which can help smooth the transition between inpainted content and the original image.\n\nTry this parameter if you notice seams or rough edges around the inpainted content.\n\n> Note: Excessive growth may obscure fine details in the mask and/or merge nearby masked regions." + "aspect_ratio": { + "$ref": "#/components/schemas/AspectRatio" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -10471,34 +4338,24 @@ "default": "png", "description": "Dictates the `content-type` of the generated image." }, - "style_preset": { + "image": { "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." + "description": "The image to use as the starting point for the generation.\n\n> **Important:** The `strength` parameter is required when `image` is provided.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Width must be between 64 and 16,384 pixels\n- Height must be between 64 and 16,384 pixels\n- Total pixel count must be at least 4,096 pixels", + "format": "binary", + "example": "./some/image.png" + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" + }, + "strength": { + "type": "number", + "minimum": 0, + "maximum": 1, + "description": "Sometimes referred to as _denoising_, this parameter controls how much influence the \n`image` parameter has on the generated image. A value of 0 would yield an image that \nis identical to the input. A value of 1 would be as if you passed in no image at all.\n\n> **Important:** This parameter is required when `image` is provided." } }, "required": [ - "image", - "prompt", - "select_prompt" + "prompt" ] } } @@ -10506,13 +4363,10 @@ }, "responses": { "200": { - "description": "Search-and-Recolor was successful.", + "description": "Generation was successful.", "headers": { "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/RequestID" }, "content-type": { "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", @@ -10547,486 +4401,111 @@ } }, "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + "$ref": "#/components/headers/ImageFinishReason" }, "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } + "$ref": "#/components/headers/Seed" } }, "content": { "image/jpeg": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated jpeg" }, "application/json; type=image/jpeg": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/png": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated png" }, "application/json; type=image/png": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } }, "image/webp": { "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" + "$ref": "#/components/schemas/ImageBinaryResponse" }, "example": "The bytes of the generated webp" }, "application/json; type=image/webp": { "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] + "$ref": "#/components/schemas/ImageJSONResponse" } } } }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/remove-background": { + "/v2beta/stable-image/generate/core": { "post": { "tags": [ - "Edit" + "Generate" ], - "summary": "Remove Background", - "description": "The Remove Background service accurately segments the foreground from an image and implements \nand removes the background.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=VHofb3LAVmqi)\n\n\n### How to use\n\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n \nThe body of the request must include:\n- `image`\n\nOptionally, the body of the request may also include:\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Stable Image Core", + "description": "Our primary service for text-to-image generation, Stable Image Core represents the best quality achievable at high\nspeed. No prompt engineering is required! Try asking for a style, a scene, or a character, and see what you get.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=yXhs626oZdr1)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `prompt`\n\nThe body may optionally include:\n- `aspect_ratio`\n- `negative_prompt`\n- `seed`\n- `style_preset`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1.5 megapixels.\n\n### Credits\nFlat rate of 3 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/remove-background\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./husky.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/core\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n image: fs.createReadStream(\"./husky-in-a-field.png\"),\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/remove-background`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./husky.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/core`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/remove-background\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./husky-in-a-field.png\" \\\n -F output_format=\"webp\" \\\n -o \"./husky.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/core\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"webp\" \\\n -o \"./lighthouse.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -11035,16 +4514,26 @@ "schema": { "type": "object", "properties": { - "image": { - "type": "string", - "description": "The image whose background you wish to remove.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 4,194,304 pixels", - "format": "binary", - "example": "./some/image.png" + "prompt": { + "$ref": "#/components/schemas/Prompt" + }, + "aspect_ratio": { + "$ref": "#/components/schemas/AspectRatio" + }, + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" + }, + "seed": { + "$ref": "#/components/schemas/Seed" + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" }, "output_format": { "type": "string", "enum": [ "png", + "jpeg", "webp" ], "default": "png", @@ -11052,7 +4541,7 @@ } }, "required": [ - "image" + "prompt" ] } } @@ -11060,404 +4549,68 @@ }, "responses": { "200": { - "description": "Background successfully removed.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/ImageGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/edit/replace-background-and-relight": { + "/v2beta/stable-image/generate/sd3": { "post": { "tags": [ - "Edit" + "Generate" ], - "summary": "Replace Background and Relight (async)", - "description": "The Replace Background and Relight edit service lets users swap backgrounds with\nAI-generated or uploaded images while adjusting lighting to match the subject. This\nnew API provides a streamlined image editing solution and can serve e-commerce, real\nestate, photography, and creative projects.\n\nSome of the things you can do include:\n - Background Replacement: Remove existing background and add new ones.\n - AI Background Generation: Create new backgrounds using AI generated images based on prompts.\n - Relighting: Adjust lighting in images that are under or overexposed.\n - Flexible Inputs: Use your own background image or generate one.\n - Lighting Adjustments: Modify light reference, direction, and strength.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=mtgSh4Stj3l)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`.\n\nThe body of the request should include:\n- `subject_image`\n- `background_prompt` and/or `background_reference`\n\nThe body may optionally include:\n- `light_reference` or `light_source_direction`\n- `light_source_strength` (requires `light_reference` or `light_source_direction`)\n- `foreground_prompt`\n- `negative_prompt`\n- `preserve_original_subject`\n- `original_background_depth`\n- `keep_original_background`\n- `light_source_strength`\n- `seed`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Results\nAfter invoking this endpoint with the required parameters, use the `id` in the response to poll for results at the\n[results/{id} endpoint](#tag/Results/paths/~1v2beta~1results~1%7Bid%7D/get). Rate-limiting or other errors may occur if you poll more than once every 10 seconds.\n\n### Credits\nFlat rate of 8 credits per successful generation. You will not be charged for failed generations.", + "summary": "Stable Diffusion 3.5", + "description": "Generate using Stable Diffusion 3.5 models, Stability AI latest base model:\n\n- **Stable Diffusion 3.5 Large**: At 8 billion parameters, with superior quality and\n prompt adherence, this base model is the most powerful in the Stable Diffusion\n family. This model is ideal for professional use cases at 1 megapixel resolution.\n\n- **Stable Diffusion 3.5 Large Turbo**: A distilled version of Stable Diffusion 3.5 Large.\n SD3.5 Large Turbo generates high-quality images with exceptional prompt adherence\n in just 4 steps, making it considerably faster than Stable Diffusion 3.5 Large.\n\n- **Stable Diffusion 3.5 Medium**: With 2.5 billion parameters, the model delivers an\n optimal balance between prompt accuracy and image quality, making it an efficient\n choice for fast high-performance image generation.\n\n- **Stable Diffusion 3.5 Flash**: A distilled version of Stable Diffusion 3.5 Medium. \n SD3.5 Flash generates high-quality images with a 4 step process instead of 40, making \n it faster than Stable Diffusion 3.5 Medium.\n\nRead more about the model capabilities [here](https://stability.ai/news/introducing-stable-diffusion-3-5).\n\nAs of April 17, 2025, we have deprecated the Stable Diffusion 3.0 APIs and will be automatically\nre-routing calls to Stable Diffusion 3.0 models to Stable Diffusion 3.5 APIs at no extra cost.\nYou can read more in the [release notes](/docs/release-notes#api-deprecation-notice).\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/SD3_API.ipynb)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`. The accept header should be set to one of the following:\n- `image/*` to receive the image in the format specified by the `output_format` parameter.\n- `application/json` to receive the image encoded as base64 in a JSON response.\n\n#### **Generating with a prompt**\nCommonly referred to as **text-to-image**, this mode generates an image from text alone. While the only required\nparameter is the `prompt`, it also supports an `aspect_ratio` parameter which can be used to control the\naspect ratio of the generated image.\n\n#### **Generating with a prompt *and* an image**\nCommonly referred to as **image-to-image**, this mode also generates an image from text but uses an existing image as the\nstarting point. The required parameters are:\n- `prompt` - text to generate the image from\n- `image` - the image to use as the starting point for the generation\n- `strength` - controls how much influence the `image` parameter has on the output image\n- `mode` - must be set to `image-to-image`\n\n> **Note:** maximum request size is 10MiB.\n\n#### **Optional Parameters:**\nBoth modes support the following optional parameters:\n- `model` - the model to use (SD 3.5 Large, SD 3.5 Large Turbo, SD 3.5 Medium, SD 3.5 Flash)\n- `output_format` - the format of the output image\n- `seed` - the randomness seed to use for the generation\n- `negative_prompt` - keywords of what you **do not** wish to see in the output image\n- `cfg_scale` - controls how strictly the diffusion process adheres to the prompt text\n- `style_preset` - guides the image model towards a particular style\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1MP. The default resolution is 1024x1024.\n\n### Credits\n- **SD 3.5 Large**: Flat rate of 6.5 credits per successful generation.\n- **SD 3.5 Large Turbo**: Flat rate of 4 credits per successful generation.\n- **SD 3.5 Medium**: Flat rate of 3.5 credits per successful generation.\n- **SD 3.5 Flash**: Flat rate of 2.5 credits per successful generation.\n\nAs always, you will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"subject_image\": open(\"./husky-in-a-field.png\", \"rb\")\n },\n data={\n \"background_prompt\": \"cinematic lighting\",\n \"output_format\": \"webp\",\n },\n)\n\nprint(\"Generation ID:\", response.json().get('id'))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/sd3\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"jpeg\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.jpeg\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n subject_image: fs.createReadStream(\"./husky-in-a-field.png\"),\n background_prompt: \"cinematic lighting\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n },\n },\n);\n\nconsole.log(\"Generation ID:\", response.data.id);" + "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"jpeg\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/sd3`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.jpeg\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/edit/replace-background-and-relight\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F subject_image=@\"./husky-in-a-field.png\" \\\n -F background_prompt=\"cinematic lighting\" \\\n -F output_format=\"webp\" \\\n -o \"./output.json\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/sd3\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"jpeg\" \\\n -o \"./lighthouse.jpeg\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -11466,2884 +4619,170 @@ "schema": { "type": "object", "properties": { - "subject_image": { - "type": "string", - "description": "An image containing the subject that you wish to change background and relight.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", - "format": "binary", - "example": "./some/image.png" - }, - "background_reference": { - "type": "string", - "description": "An image whose style you wish to use in the background. Similar to the Control: Style API,\nstylistic elements from this image are added to the background.\n\n> **Important:** either `background_reference` or `background_prompt` must be provided.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", - "format": "binary", - "example": "./some/image.png" - }, - "background_prompt": { - "type": "string", - "maxLength": 10000, - "description": "What you wish to see in the background of the output image. This could be a description\nof the desired background scene, or just a description of the lighting if modifying the\nlight source through `light_source_direction` or `light_reference`.\n\n> **Important:** either `background_reference` or `background_prompt` must be provided." + "prompt": { + "allOf": [ + { + "$ref": "#/components/schemas/Prompt" + }, + { + "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results." + } + ] }, - "foreground_prompt": { + "mode": { "type": "string", - "maxLength": 10000, - "description": "Description of the subject. Use this to prevent elements of the background from\nbleeding into the subject. For example, if you find your subject is turning\ngreen with a forest in the background, try putting a short description of the\nsubject in this field." + "enum": [ + "text-to-image", + "image-to-image" + ], + "default": "text-to-image", + "description": "Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:\n- **text-to-image** requires only the `prompt` parameter\n- **image-to-image** requires the `prompt`, `image`, and `strength` parameters", + "title": "GenerationMode" }, - "negative_prompt": { + "image": { "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "description": "The image to use as the starting point for the generation.\n\nSupported formats:\n - jpeg\n - png\n - webp\n\nSupported dimensions:\n - Every side must be at least 64 pixels\n\n> **Important:** This parameter is only valid for **image-to-image** requests.", + "format": "binary" }, - "preserve_original_subject": { + "strength": { "type": "number", "minimum": 0, "maximum": 1, - "default": 0.6, - "description": "How much to overlay the original subject to exactly match the original image. A\n1.0 is an exact pixel match for the subject, and 0.0 is a close match but will\nhave new lighting qualities. This is an advanced feature." + "description": "Sometimes referred to as _denoising_, this parameter controls how much influence the\n`image` parameter has on the generated image. A value of 0 would yield an image that\nis identical to the input. A value of 1 would be as if you passed in no image at all.\n\n> **Important:** This parameter is only valid for **image-to-image** requests. For SD 3.5 Flash, the\n best results for image-to-image generation are achieved with a `strength` between .94 - .97." }, - "original_background_depth": { - "type": "number", - "minimum": 0, - "maximum": 1, - "default": 0.5, - "description": "Controls the generated background to have the same depth as the original subject image. This is an advanced feature." - }, - "keep_original_background": { + "aspect_ratio": { "type": "string", "enum": [ - "true", - "false" + "21:9", + "16:9", + "3:2", + "5:4", + "1:1", + "4:5", + "2:3", + "9:16", + "9:21" ], - "default": "false", - "description": "Whether to keep the background of the original image. When this is on, the background\nwill have different lighting than the original image that changes based on the other\nparameters in this API." + "default": "1:1", + "description": "Controls the aspect ratio of the generated image. Defaults to 1:1.\n\n> **Important:** This parameter is only valid for **text-to-image** requests." }, - "light_source_direction": { + "model": { "type": "string", "enum": [ - "left", - "right", - "above", - "below" + "sd3.5-large", + "sd3.5-large-turbo", + "sd3.5-medium" ], - "description": "Direction of the light source." - }, - "light_reference": { - "type": "string", - "description": "An image with the desired lighting. Lighter sections of the light_reference image will correspond to sections with brighter lighting in the output image.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels", - "format": "binary", - "example": "./some/image.png" - }, - "light_source_strength": { - "type": "number", - "minimum": 0, - "maximum": 1, - "default": 0.3, - "description": "If using `light_reference_image` or `light_source_direction`, controls the strength\nof the light source. 1.0 is brighter and 0.0 is dimmer. This is an advanced feature.\n\n> **Important:** Use of this parameter requires `light_reference` or `light_source_direction` to be provided." + "default": "sd3.5-large", + "description": "The model to use for generation.\n\n- `sd3.5-large` requires 6.5 credits per generation\n- `sd3.5-large-turbo` requires 4 credits per generation\n- `sd3.5-medium` requires 3.5 credits per generation\n- `sd3.5-flash` requires 2.5 credits per generation\n- As of the April 17, 2025, `sd3-large`, `sd3-large-turbo` and `sd3-medium`\n are re-routed to their `sd3.5-[model version]` equivalent, at the same price." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", "enum": [ - "jpeg", "png", + "jpeg", "webp" ], "default": "png", "description": "Dictates the `content-type` of the generated image." - } - }, - "required": [ - "subject_image" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Replace Background and Relight was started.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/GenerationID" - } - }, - "required": [ - "id" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } - }, - "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } - } - } - } - }, - "/v2beta/stable-image/generate/ultra": { - "post": { - "tags": [ - "Generate" - ], - "summary": "Stable Image Ultra", - "description": "Our most advanced text to image generation service, Stable Image Ultra creates the highest quality images\nwith unprecedented prompt understanding. Ultra excels in typography, complex compositions, dynamic lighting,\nvibrant hues, and overall cohesion and structure of an art piece. Made from the most advanced models,\nincluding Stable Diffusion 3.5, Ultra offers the best of the Stable Diffusion ecosystem.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=yXhs626oZdr1)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`. The accept header should be set to one of the following:\n- `image/*` to receive the image in the format specified by the `output_format` parameter.\n- `application/json` to receive the image in the format specified by the `output_format` parameter, but encoded to base64 in a JSON response.\n\nThe only required parameter is the `prompt` field, which should contain the text prompt for the image generation.\n\nThe body of the request should include:\n- `prompt` - text to generate the image from\n\nThe body may optionally include:\n- `image` - the image to use as the starting point for the generation\n- `strength` - controls how much influence the `image` parameter has on the output image\n- `aspect_ratio` - the aspect ratio of the output image\n- `negative_prompt` - keywords of what you **do not** wish to see in the output image\n- `seed` - the randomness seed to use for the generation\n- `output_format` - the format of the output image\n\n> **Note:** for the full list of optional parameters, please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1 megapixel. The default resolution is 1024x1024.\n\n### Credits\nThe Ultra service uses 8 credits per successful result. You will not be charged for failed results.", - "x-codeSamples": [ - { - "lang": "python", - "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/ultra\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" - }, - { - "lang": "javascript", - "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/ultra`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" - }, - { - "lang": "terminal", - "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/ultra\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"webp\" \\\n -o \"./lighthouse.webp\"" - } - ], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" - }, - { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." - }, - "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." - }, - "aspect_ratio": { - "type": "string", - "enum": [ - "21:9", - "16:9", - "3:2", - "5:4", - "1:1", - "4:5", - "2:3", - "9:16", - "9:21" - ], - "default": "1:1", - "description": "Controls the aspect ratio of the generated image." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" - }, - "output_format": { - "type": "string", - "enum": [ - "jpeg", - "png", - "webp" - ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." - }, - "image": { - "type": "string", - "description": "The image to use as the starting point for the generation.\n\n> **Important:** The `strength` parameter is required when `image` is provided.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Width must be between 64 and 16,384 pixels\n- Height must be between 64 and 16,384 pixels\n- Total pixel count must be at least 4,096 pixels", - "format": "binary", - "example": "./some/image.png" - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." - }, - "strength": { - "type": "number", - "minimum": 0, - "maximum": 1, - "description": "Sometimes referred to as _denoising_, this parameter controls how much influence the \n`image` parameter has on the generated image. A value of 0 would yield an image that \nis identical to the input. A value of 1 would be as if you passed in no image at all.\n\n> **Important:** This parameter is required when `image` is provided." - } - }, - "required": [ - "prompt" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } - }, - "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } - } - } - } - }, - "/v2beta/stable-image/generate/core": { - "post": { - "tags": [ - "Generate" - ], - "summary": "Stable Image Core", - "description": "Our primary service for text-to-image generation, Stable Image Core represents the best quality achievable at high\nspeed. No prompt engineering is required! Try asking for a style, a scene, or a character, and see what you get.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=yXhs626oZdr1)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `prompt`\n\nThe body may optionally include:\n- `aspect_ratio`\n- `negative_prompt`\n- `seed`\n- `style_preset`\n- `output_format`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1.5 megapixels.\n\n### Credits\nFlat rate of 3 credits per successful generation. You will not be charged for failed generations.", - "x-codeSamples": [ - { - "lang": "python", - "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/core\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"webp\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" - }, - { - "lang": "javascript", - "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"webp\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/core`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" - }, - { - "lang": "terminal", - "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/core\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"webp\" \\\n -o \"./lighthouse.webp\"" - } - ], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" - }, - { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." - }, - "aspect_ratio": { - "type": "string", - "enum": [ - "21:9", - "16:9", - "3:2", - "5:4", - "1:1", - "4:5", - "2:3", - "9:16", - "9:21" - ], - "default": "1:1", - "description": "Controls the aspect ratio of the generated image." - }, - "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." - }, - "output_format": { - "type": "string", - "enum": [ - "png", - "jpeg", - "webp" - ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." - } - }, - "required": [ - "prompt" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } - }, - "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } - } - } - } - }, - "/v2beta/stable-image/generate/sd3": { - "post": { - "tags": [ - "Generate" - ], - "summary": "Stable Diffusion 3.5", - "description": "Generate using Stable Diffusion 3.5 models, Stability AI latest base model:\n\n- **Stable Diffusion 3.5 Large**: At 8 billion parameters, with superior quality and\n prompt adherence, this base model is the most powerful in the Stable Diffusion\n family. This model is ideal for professional use cases at 1 megapixel resolution.\n\n- **Stable Diffusion 3.5 Large Turbo**: A distilled version of Stable Diffusion 3.5 Large.\n SD3.5 Large Turbo generates high-quality images with exceptional prompt adherence\n in just 4 steps, making it considerably faster than Stable Diffusion 3.5 Large.\n\n- **Stable Diffusion 3.5 Medium**: With 2.5 billion parameters, the model delivers an\n optimal balance between prompt accuracy and image quality, making it an efficient\n choice for fast high-performance image generation.\n\n- **Stable Diffusion 3.5 Flash**: A distilled version of Stable Diffusion 3.5 Medium. \n SD3.5 Flash generates high-quality images with a 4 step process instead of 40, making \n it faster than Stable Diffusion 3.5 Medium.\n\nRead more about the model capabilities [here](https://stability.ai/news/introducing-stable-diffusion-3-5).\n\nAs of April 17, 2025, we have deprecated the Stable Diffusion 3.0 APIs and will be automatically\nre-routing calls to Stable Diffusion 3.0 models to Stable Diffusion 3.5 APIs at no extra cost.\nYou can read more in the [release notes](/docs/release-notes#api-deprecation-notice).\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/SD3_API.ipynb)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`. The accept header should be set to one of the following:\n- `image/*` to receive the image in the format specified by the `output_format` parameter.\n- `application/json` to receive the image encoded as base64 in a JSON response.\n\n#### **Generating with a prompt**\nCommonly referred to as **text-to-image**, this mode generates an image from text alone. While the only required\nparameter is the `prompt`, it also supports an `aspect_ratio` parameter which can be used to control the\naspect ratio of the generated image.\n\n#### **Generating with a prompt *and* an image**\nCommonly referred to as **image-to-image**, this mode also generates an image from text but uses an existing image as the\nstarting point. The required parameters are:\n- `prompt` - text to generate the image from\n- `image` - the image to use as the starting point for the generation\n- `strength` - controls how much influence the `image` parameter has on the output image\n- `mode` - must be set to `image-to-image`\n\n> **Note:** maximum request size is 10MiB.\n\n#### **Optional Parameters:**\nBoth modes support the following optional parameters:\n- `model` - the model to use (SD 3.5 Large, SD 3.5 Large Turbo, SD 3.5 Medium, SD 3.5 Flash)\n- `output_format` - the format of the output image\n- `seed` - the randomness seed to use for the generation\n- `negative_prompt` - keywords of what you **do not** wish to see in the output image\n- `cfg_scale` - controls how strictly the diffusion process adheres to the prompt text\n- `style_preset` - guides the image model towards a particular style\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will be 1MP. The default resolution is 1024x1024.\n\n### Credits\n- **SD 3.5 Large**: Flat rate of 6.5 credits per successful generation.\n- **SD 3.5 Large Turbo**: Flat rate of 4 credits per successful generation.\n- **SD 3.5 Medium**: Flat rate of 3.5 credits per successful generation.\n- **SD 3.5 Flash**: Flat rate of 2.5 credits per successful generation.\n\nAs always, you will not be charged for failed generations.", - "x-codeSamples": [ - { - "lang": "python", - "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/generate/sd3\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\"none\": ''},\n data={\n \"prompt\": \"Lighthouse on a cliff overlooking the ocean\",\n \"output_format\": \"jpeg\",\n },\n)\n\nif response.status_code == 200:\n with open(\"./lighthouse.jpeg\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" - }, - { - "lang": "javascript", - "label": "JavaScript", - "source": "import fs from \"node:fs\";\nimport axios from \"axios\";\nimport FormData from \"form-data\";\n\nconst payload = {\n prompt: \"Lighthouse on a cliff overlooking the ocean\",\n output_format: \"jpeg\"\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/generate/sd3`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: { \n Authorization: `Bearer sk-MYAPIKEY`, \n Accept: \"image/*\" \n },\n },\n);\n\nif(response.status === 200) {\n fs.writeFileSync(\"./lighthouse.jpeg\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" - }, - { - "lang": "terminal", - "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/generate/sd3\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F prompt=\"Lighthouse on a cliff overlooking the ocean\" \\\n -F output_format=\"jpeg\" \\\n -o \"./lighthouse.jpeg\"" - } - ], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" - }, - { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results." - }, - "mode": { - "type": "string", - "enum": [ - "text-to-image", - "image-to-image" - ], - "default": "text-to-image", - "description": "Controls whether this is a text-to-image or image-to-image generation, which affects which parameters are required:\n- **text-to-image** requires only the `prompt` parameter\n- **image-to-image** requires the `prompt`, `image`, and `strength` parameters", - "title": "GenerationMode" - }, - "image": { - "type": "string", - "description": "The image to use as the starting point for the generation.\n\nSupported formats:\n - jpeg\n - png\n - webp\n\nSupported dimensions:\n - Every side must be at least 64 pixels\n\n> **Important:** This parameter is only valid for **image-to-image** requests.", - "format": "binary" - }, - "strength": { - "type": "number", - "minimum": 0, - "maximum": 1, - "description": "Sometimes referred to as _denoising_, this parameter controls how much influence the\n`image` parameter has on the generated image. A value of 0 would yield an image that\nis identical to the input. A value of 1 would be as if you passed in no image at all.\n\n> **Important:** This parameter is only valid for **image-to-image** requests. For SD 3.5 Flash, the\n best results for image-to-image generation are achieved with a `strength` between .94 - .97." - }, - "aspect_ratio": { - "type": "string", - "enum": [ - "21:9", - "16:9", - "3:2", - "5:4", - "1:1", - "4:5", - "2:3", - "9:16", - "9:21" - ], - "default": "1:1", - "description": "Controls the aspect ratio of the generated image. Defaults to 1:1.\n\n> **Important:** This parameter is only valid for **text-to-image** requests." - }, - "model": { - "type": "string", - "enum": [ - "sd3.5-large", - "sd3.5-large-turbo", - "sd3.5-medium" - ], - "default": "sd3.5-large", - "description": "The model to use for generation.\n\n- `sd3.5-large` requires 6.5 credits per generation\n- `sd3.5-large-turbo` requires 4 credits per generation\n- `sd3.5-medium` requires 3.5 credits per generation\n- `sd3.5-flash` requires 2.5 credits per generation\n- As of the April 17, 2025, `sd3-large`, `sd3-large-turbo` and `sd3-medium`\n are re-routed to their `sd3.5-[model version]` equivalent, at the same price." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" - }, - "output_format": { - "type": "string", - "enum": [ - "png", - "jpeg", - "webp" - ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." - }, - "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "Keywords of what you **do not** wish to see in the output image.\nThis is an advanced feature." - }, - "cfg_scale": { - "type": "number", - "minimum": 1, - "maximum": 10, - "description": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`." - } - }, - "required": [ - "prompt" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } - }, - "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } - } - } - } - }, - "/v2beta/stable-image/control/sketch": { - "post": { - "tags": [ - "Control" - ], - "summary": "Sketch", - "description": "This service offers an ideal solution for design projects that require brainstorming and\nfrequent iterations. It upgrades rough hand-drawn sketches to refined outputs with precise\ncontrol. For non-sketch images, it allows detailed manipulation of the final appearance by\nleveraging the contour lines and edges within the image.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=ZKIAqHzJzzUo)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `control_strength`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match that of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", - "x-codeSamples": [ - { - "lang": "python", - "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/control/sketch\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./sketch.png\", \"rb\")\n },\n data={\n \"prompt\": \"a medieval castle on a hill\",\n \"control_strength\": 0.7,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./castle.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" - }, - { - "lang": "javascript", - "label": "JavaScript", - "source": "import axios from \"axios\";\nimport FormData from \"form-data\";\nimport fs from \"node:fs\";\n\nconst payload = {\n image: fs.createReadStream(\"./sketch.png\"),\n prompt: \"a medieval castle on a hill\",\n control_strength: 0.6,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/control/sketch`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\"\n },\n },\n);\n\nif (response.status === 200) {\n fs.writeFileSync(\"./castle.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" - }, - { - "lang": "terminal", - "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/control/sketch\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./sketch.png\" \\\n -F prompt=\"a medieval castle on a hill\" \\\n -F control_strength=0.7 \\\n -F output_format=\"webp\" \\\n -o \"./castle.webp\"" - } - ], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" - }, - { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" - }, - { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." - }, - "image": { - "type": "string", - "description": "Supported Formats:\n- jpeg\n- png\n- webp\n\nImage Dimensions:\n- Every side must be at least 64 pixels\n- The total pixel count cannot exceed 9,437,184 pixels (e.g. 3072x3072, 4096x2304, etc.)\n\nImage Aspect Ratio:\n- Must be between 1:2.5 and 2.5:1 (i.e. cannot be too tall or too wide)", - "format": "binary", - "example": "./some/image.png" - }, - "control_strength": { - "type": "number", - "minimum": 0, - "maximum": 1, - "default": 0.7, - "description": "How much influence, or control, the `image` has on the generation. Represented as a float between 0 and 1, where 0 is the least influence and 1 is the maximum." + "style_preset": { + "$ref": "#/components/schemas/StylePreset" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" - }, - "output_format": { - "type": "string", - "enum": [ - "png", - "jpeg", - "webp" - ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." - } - }, - "required": [ - "prompt", - "image" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." + "allOf": [ + { + "$ref": "#/components/schemas/NegativePrompt" + }, + { + "description": "Keywords of what you **do not** wish to see in the output image.\nThis is an advanced feature." + } ] + }, + "cfg_scale": { + "type": "number", + "minimum": 1, + "maximum": 10, + "description": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt). The _Large_ and _Medium_ models use a default of `4`. The _Turbo_ and _Flash_ model uses a default of `1`." } - } + }, + "required": [ + "prompt" + ] } } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageGenerationSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } }, - "/v2beta/stable-image/control/structure": { + "/v2beta/stable-image/control/sketch": { "post": { "tags": [ "Control" ], - "summary": "Structure", - "description": "This service excels in generating images by maintaining the structure of an input image,\nmaking it especially valuable for advanced content creation scenarios such as recreating\nscenes or rendering characters from models.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=59RaZazXz0AU)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `control_strength`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match that of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "summary": "Sketch", + "description": "This service offers an ideal solution for design projects that require brainstorming and\nfrequent iterations. It upgrades rough hand-drawn sketches to refined outputs with precise\ncontrol. For non-sketch images, it allows detailed manipulation of the final appearance by\nleveraging the contour lines and edges within the image.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=ZKIAqHzJzzUo)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `control_strength`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match that of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", "x-codeSamples": [ { "lang": "python", "label": "Python", - "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/control/structure\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./cat-statue.png\", \"rb\")\n },\n data={\n \"prompt\": \"a well manicured shrub in an english garden\",\n \"control_strength\": 0.7,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./shrub-in-a-garden.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/control/sketch\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./sketch.png\", \"rb\")\n },\n data={\n \"prompt\": \"a medieval castle on a hill\",\n \"control_strength\": 0.7,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./castle.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" }, { "lang": "javascript", "label": "JavaScript", - "source": "import axios from \"axios\";\nimport FormData from \"form-data\";\nimport fs from \"node:fs\";\n\nconst payload = {\n image: fs.createReadStream(\"./cat-statue.png\"),\n prompt: \"a well manicured shrub in an english garden\",\n control_strength: 0.6,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/control/structure`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\"\n },\n },\n);\n\nif (response.status === 200) {\n fs.writeFileSync(\"./shrub-in-a-garden.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + "source": "import axios from \"axios\";\nimport FormData from \"form-data\";\nimport fs from \"node:fs\";\n\nconst payload = {\n image: fs.createReadStream(\"./sketch.png\"),\n prompt: \"a medieval castle on a hill\",\n control_strength: 0.6,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/control/sketch`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\"\n },\n },\n);\n\nif (response.status === 200) {\n fs.writeFileSync(\"./castle.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" }, { "lang": "terminal", "label": "cURL", - "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/control/structure\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./cat-statue.png\" \\\n -F prompt=\"a well manicured shrub in an english garden\" \\\n -F control_strength=0.7 \\\n -F output_format=\"webp\" \\\n -o \"./shrub-in-a-garden.webp\"" + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/control/sketch\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./sketch.png\" \\\n -F prompt=\"a medieval castle on a hill\" \\\n -F control_strength=0.7 \\\n -F output_format=\"webp\" \\\n -o \"./castle.webp\"" } ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -14353,14 +4792,11 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "image": { "type": "string", - "description": "An image whose structure you wish to use as the foundation for a generation.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", + "description": "Supported Formats:\n- jpeg\n- png\n- webp\n\nImage Dimensions:\n- Every side must be at least 64 pixels\n- The total pixel count cannot exceed 9,437,184 pixels (e.g. 3072x3072, 4096x2304, etc.)\n\nImage Aspect Ratio:\n- Must be between 1:2.5 and 2.5:1 (i.e. cannot be too tall or too wide)", "format": "binary", "example": "./some/image.png" }, @@ -14372,16 +4808,10 @@ "description": "How much influence, or control, the `image` has on the generation. Represented as a float between 0 and 1, where 0 is the least influence and 1 is the maximum." }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -14390,477 +4820,161 @@ "jpeg", "webp" ], - "default": "png", - "description": "Dictates the `content-type` of the generated image." - }, - "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." - } - }, - "required": [ - "prompt", - "image" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } + "default": "png", + "description": "Dictates the `content-type` of the generated image." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" + } + }, + "required": [ + "prompt", + "image" + ] } } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageGenerationSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } + } + } + }, + "/v2beta/stable-image/control/structure": { + "post": { + "tags": [ + "Control" + ], + "summary": "Structure", + "description": "This service excels in generating images by maintaining the structure of an input image,\nmaking it especially valuable for advanced content creation scenarios such as recreating\nscenes or rendering characters from models.\n\n### Try it out\nGrab your [API key](https://platform.stability.ai/account/keys) and head over to [![Open Google Colab](https://platform.stability.ai/svg/google-colab.svg)](https://colab.research.google.com/github/stability-ai/stability-sdk/blob/main/nbs/Stable_Image_API_Public.ipynb#scrollTo=59RaZazXz0AU)\n\n### How to use\nPlease invoke this endpoint with a `POST` request.\n\nThe headers of the request must include an API key in the `authorization` field. The body of the request must be\n`multipart/form-data`, and the `accept` header should be set to one of the following:\n - `image/*` to receive the image in the format specified by the `output_format` parameter.\n - `application/json` to receive the image encoded as base64 in a JSON response.\n\nThe body of the request should include:\n- `image`\n- `prompt`\n\nThe body may optionally include:\n- `control_strength`\n- `negative_prompt`\n- `seed`\n- `output_format`\n- `style_preset`\n\n> **Note:** for more details about these parameters please see the request schema below.\n\n### Output\nThe resolution of the generated image will match that of the input image.\n\n### Credits\nFlat rate of 5 credits per successful generation. You will not be charged for failed generations.", + "x-codeSamples": [ + { + "lang": "python", + "label": "Python", + "source": "import requests\n\nresponse = requests.post(\n f\"https://api.stability.ai/v2beta/stable-image/control/structure\",\n headers={\n \"authorization\": f\"Bearer sk-MYAPIKEY\",\n \"accept\": \"image/*\"\n },\n files={\n \"image\": open(\"./cat-statue.png\", \"rb\")\n },\n data={\n \"prompt\": \"a well manicured shrub in an english garden\",\n \"control_strength\": 0.7,\n \"output_format\": \"webp\"\n },\n)\n\nif response.status_code == 200:\n with open(\"./shrub-in-a-garden.webp\", 'wb') as file:\n file.write(response.content)\nelse:\n raise Exception(str(response.json()))" + }, + { + "lang": "javascript", + "label": "JavaScript", + "source": "import axios from \"axios\";\nimport FormData from \"form-data\";\nimport fs from \"node:fs\";\n\nconst payload = {\n image: fs.createReadStream(\"./cat-statue.png\"),\n prompt: \"a well manicured shrub in an english garden\",\n control_strength: 0.6,\n output_format: \"webp\",\n};\n\nconst response = await axios.postForm(\n `https://api.stability.ai/v2beta/stable-image/control/structure`,\n axios.toFormData(payload, new FormData()),\n {\n validateStatus: undefined,\n responseType: \"arraybuffer\",\n headers: {\n Authorization: `Bearer sk-MYAPIKEY`,\n Accept: \"image/*\"\n },\n },\n);\n\nif (response.status === 200) {\n fs.writeFileSync(\"./shrub-in-a-garden.webp\", Buffer.from(response.data));\n} else {\n throw new Error(`${response.status}: ${response.data.toString()}`);\n}" + }, + { + "lang": "terminal", + "label": "cURL", + "source": "curl -f -sS \"https://api.stability.ai/v2beta/stable-image/control/structure\" \\\n -H \"authorization: Bearer sk-MYAPIKEY\" \\\n -H \"accept: image/*\" \\\n -F image=@\"./cat-statue.png\" \\\n -F prompt=\"a well manicured shrub in an english garden\" \\\n -F control_strength=0.7 \\\n -F output_format=\"webp\" \\\n -o \"./shrub-in-a-garden.webp\"" + } + ], + "parameters": [ + { + "$ref": "#/components/parameters/Authorization" + }, + { + "$ref": "#/components/parameters/FormDataContentType" + }, + { + "$ref": "#/components/parameters/AcceptImage" + }, + { + "$ref": "#/components/parameters/StabilityClientID" + }, + { + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "prompt": { + "$ref": "#/components/schemas/Prompt" }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } + "image": { + "type": "string", + "description": "An image whose structure you wish to use as the foundation for a generation.\n\nSupported Formats:\n- jpeg\n- png\n- webp\n\nValidation Rules:\n- Every side must be at least 64 pixels\n- Total pixel count must be between 4,096 and 9,437,184 pixels\n- The aspect ratio must be between 1:2.5 and 2.5:1", + "format": "binary", + "example": "./some/image.png" }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } + "control_strength": { + "type": "number", + "minimum": 0, + "maximum": 1, + "default": 0.7, + "description": "How much influence, or control, the `image` has on the generation. Represented as a float between 0 and 1, where 0 is the least influence and 1 is the maximum." + }, + "negative_prompt": { + "$ref": "#/components/schemas/NegativePrompt" + }, + "seed": { + "$ref": "#/components/schemas/Seed" + }, + "output_format": { + "type": "string", + "enum": [ + "png", + "jpeg", + "webp" + ], + "default": "png", + "description": "Dictates the `content-type` of the generated image." + }, + "style_preset": { + "$ref": "#/components/schemas/StylePreset" } - } + }, + "required": [ + "prompt", + "image" + ] } } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageGenerationSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -14891,63 +5005,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -14957,10 +5030,7 @@ "type": "object", "properties": { "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "image": { "type": "string", @@ -14969,25 +5039,10 @@ "example": "./some/image.png" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "aspect_ratio": { - "type": "string", - "enum": [ - "21:9", - "16:9", - "3:2", - "5:4", - "1:1", - "4:5", - "2:3", - "9:16", - "9:21" - ], - "default": "1:1", - "description": "Controls the aspect ratio of the generated image." + "$ref": "#/components/schemas/AspectRatio" }, "fidelity": { "type": "number", @@ -14997,11 +5052,7 @@ "description": "How closely the output image's style resembles the input image's style." }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -15014,27 +5065,7 @@ "description": "Dictates the `content-type` of the generated image." }, "style_preset": { - "type": "string", - "enum": [ - "enhance", - "anime", - "photographic", - "digital-art", - "comic-book", - "fantasy-art", - "line-art", - "analog-film", - "neon-punk", - "isometric", - "low-poly", - "origami", - "modeling-compound", - "cinematic", - "3d-model", - "pixel-art", - "tile-texture" - ], - "description": "Guides the image model towards a particular style." + "$ref": "#/components/schemas/StylePreset" } }, "required": [ @@ -15047,440 +5078,25 @@ }, "responses": { "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } + "$ref": "#/components/responses/ImageGenerationSuccess" }, "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } + "$ref": "#/components/responses/BadRequest" }, "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } + "$ref": "#/components/responses/ContentModerated" }, "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } + "$ref": "#/components/responses/PayloadTooLarge" }, "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } + "$ref": "#/components/responses/ImageClassificationFailed" }, "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } + "$ref": "#/components/responses/RateLimited" }, "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } - } - } + "$ref": "#/components/responses/InternalError" } } } @@ -15511,63 +5127,22 @@ ], "parameters": [ { - "schema": { - "type": "string", - "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", - "minLength": 1 - }, - "required": true, - "name": "authorization", - "in": "header" - }, - { - "schema": { - "type": "string", - "minLength": 1, - "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", - "example": "multipart/form-data" - }, - "required": true, - "name": "content-type", - "in": "header" + "$ref": "#/components/parameters/Authorization" }, { - "schema": { - "type": "string", - "default": "image/*", - "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", - "enum": [ - "image/*", - "application/json" - ] - }, - "required": false, - "name": "accept", - "in": "header" + "$ref": "#/components/parameters/FormDataContentType" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientID" - }, - "required": false, - "name": "stability-client-id", - "in": "header" + "$ref": "#/components/parameters/AcceptImage" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientUserID" - }, - "required": false, - "name": "stability-client-user-id", - "in": "header" + "$ref": "#/components/parameters/StabilityClientID" }, { - "schema": { - "$ref": "#/components/schemas/StabilityClientVersion" - }, - "required": false, - "name": "stability-client-version", - "in": "header" + "$ref": "#/components/parameters/StabilityClientUserID" + }, + { + "$ref": "#/components/parameters/StabilityClientVersion" } ], "requestBody": { @@ -15595,16 +5170,10 @@ "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "style_strength": { "type": "number", @@ -15638,451 +5207,36 @@ "description": "Dictates the `content-type` of the generated image." } }, - "required": [ - "init_image", - "style_image" - ] - } - } - } - }, - "responses": { - "200": { - "description": "Generation was successful.", - "headers": { - "x-request-id": { - "description": "A unique identifier for this request.", - "schema": { - "type": "string" - } - }, - "content-type": { - "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", - "examples": { - "png": { - "description": "raw bytes", - "value": "image/png" - }, - "pngJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/png" - }, - "jpeg": { - "description": "raw bytes", - "value": "image/jpeg" - }, - "jpegJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/jpeg" - }, - "webp": { - "description": "raw bytes", - "value": "image/webp" - }, - "webpJSON": { - "description": "base64 encoded", - "value": "application/json; type=image/webp" - } - }, - "schema": { - "type": "string" - } - }, - "finish-reason": { - "schema": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ] - }, - "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." - }, - "seed": { - "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", - "example": "343940597", - "schema": { - "type": "string" - } - } - }, - "content": { - "image/png": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated png" - }, - "application/json; type=image/png": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/jpeg": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated jpeg" - }, - "application/json; type=image/jpeg": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - }, - "image/webp": { - "schema": { - "type": "string", - "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", - "format": "binary" - }, - "example": "The bytes of the generated webp" - }, - "application/json; type=image/webp": { - "schema": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "The generated image, encoded to base64.", - "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." - }, - "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "The seed used as random noise for this generation.", - "example": 343940597 - }, - "finish_reason": { - "type": "string", - "enum": [ - "SUCCESS", - "CONTENT_FILTERED" - ], - "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", - "example": "SUCCESS" - } - }, - "required": [ - "image", - "finish_reason" - ] - } - } - } - }, - "400": { - "description": "Invalid parameter(s), see the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - } - } - } - }, - "403": { - "description": "Your request was flagged by our content moderation system.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ContentModerationResponse" - } - } - } - }, - "413": { - "description": "Your request was larger than 10MiB.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "4212a4b66fbe1cedca4bf2133d35dca5", - "name": "payload_too_large", - "errors": [ - "body: payloads cannot be larger than 10MiB in size" - ] - } - } - } - } - }, - "422": { - "description": "Your request was well-formed, but rejected. See the `errors` field for details.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ] - }, - "examples": { - "Invalid Language": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "invalid_language", - "errors": [ - "English is the only supported language for this service." - ] - } - }, - "Public Figure Detected": { - "value": { - "id": "ff54b236a3acdde1522cb1ba641c43ed", - "name": "public_figure", - "errors": [ - "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." - ] - } - } - } - } - } - }, - "429": { - "description": "You have made more than 150 requests in 10 seconds.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "rate_limit_exceeded", - "name": "rate_limit_exceeded", - "errors": [ - "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." - ] - } - } - } - } - }, - "500": { - "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "minLength": 1, - "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", - "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" - }, - "name": { - "type": "string", - "minLength": 1, - "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", - "example": "bad_request" - }, - "errors": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "description": "One or more error messages indicating what went wrong.", - "example": [ - "some-field: is required" - ] - } - }, - "required": [ - "id", - "name", - "errors" - ], - "example": { - "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", - "name": "internal_error", - "errors": [ - "An unexpected server error has occurred, please try again later." - ] - } - } + "required": [ + "init_image", + "style_image" + ] } } } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ImageGenerationSuccess" + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/ContentModerated" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "422": { + "$ref": "#/components/responses/ImageClassificationFailed" + }, + "429": { + "$ref": "#/components/responses/RateLimited" + }, + "500": { + "$ref": "#/components/responses/InternalError" + } } } } @@ -16129,30 +5283,35 @@ }, "Error": { "type": "object", - "x-go-name": "RESTError", "properties": { "id": { - "x-go-name": "ID", "type": "string", - "description": "A unique identifier for this particular occurrence of the problem.", - "example": "296a972f-666a-44a1-a3df-c9c28a1f56c0" + "minLength": 1, + "description": "A unique identifier associated with this error. Please include this in any [support tickets](https://kb.stability.ai/knowledge-base/kb-tickets/new)\nyou file, as it will greatly assist us in diagnosing the root cause of the problem.", + "example": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4" }, "name": { "type": "string", - "description": "The short-name of this class of errors e.g. `bad_request`.", + "minLength": 1, + "description": "Short-hand name for an error, useful for discriminating between errors with the same status code.", "example": "bad_request" }, - "message": { - "type": "string", - "description": "A human-readable explanation specific to this occurrence of the problem.", - "example": "Header parameter Authorization is required, but not found" + "errors": { + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "description": "One or more error messages indicating what went wrong.", + "example": [ + "some-field: is required" + ] } }, "required": [ - "name", "id", - "message", - "status" + "name", + "errors" ] }, "CfgScale": { @@ -16234,13 +5393,11 @@ "maximum": 10 }, "Seed": { - "type": "integer", - "x-go-type": "uint32", - "description": "Random noise seed (omit this option or use `0` for a random seed)", - "default": 0, - "example": 0, + "type": "number", "minimum": 0, - "maximum": 4294967295 + "maximum": 4294967294, + "default": 0, + "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" }, "Steps": { "x-go-type": "uint64", @@ -16812,13 +5969,6 @@ "is_default" ] }, - "GenerationID": { - "type": "string", - "minLength": 64, - "maxLength": 64, - "description": "The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.", - "example": "a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4" - }, "ContentModerationResponse": { "type": "object", "properties": { @@ -16862,6 +6012,140 @@ ] } }, + "ImageBinaryResponse": { + "type": "string", + "description": "The bytes of the generated image.\n\nThe `finish-reason` and `seed` will be present as headers.", + "format": "binary" + }, + "ImageJSONResponse": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "The generated image, encoded to base64.", + "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." + }, + "seed": { + "allOf": [ + { + "$ref": "#/components/schemas/Seed" + }, + { + "description": "The seed used as random noise for this generation.", + "example": 343940597 + } + ] + }, + "finish_reason": { + "type": "string", + "enum": [ + "SUCCESS", + "CONTENT_FILTERED" + ], + "description": "The reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.", + "example": "SUCCESS" + } + }, + "required": [ + "image", + "finish_reason" + ] + }, + "AudioBinaryResponse": { + "type": "string", + "description": "The bytes of the generated audio.\n\nThe `finish-reason` and `seed` will be present as headers.", + "format": "binary" + }, + "AudioJSONResponse": { + "type": "object", + "properties": { + "audio": { + "type": "string", + "description": "The generated audio, encoded to base64.", + "example": "AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1..." + }, + "seed": { + "allOf": [ + { + "$ref": "#/components/schemas/Seed" + }, + { + "description": "The seed used as random noise for this generation.", + "example": 343940597 + } + ] + }, + "finish_reason": { + "type": "string", + "enum": [ + "SUCCESS" + ], + "description": "The reason the generation finished. It is always `SUCCESS` for this endpoint.", + "example": "SUCCESS" + } + }, + "required": [ + "audio", + "finish_reason" + ] + }, + "ModelBinaryResponse": { + "type": "string", + "description": "The bytes of the generated 3D model.", + "format": "binary" + }, + "GenerationID": { + "type": "string", + "minLength": 64, + "maxLength": 64, + "description": "The `id` of a generation, typically used for async generations, that can be used to check the status of the generation or retrieve the result.", + "example": "a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4" + }, + "AsyncGenerationResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/GenerationID" + } + }, + "required": [ + "id" + ] + }, + "Prompt": { + "type": "string", + "minLength": 1, + "maxLength": 10000, + "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + }, + "NegativePrompt": { + "type": "string", + "maxLength": 10000, + "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + }, + "StylePreset": { + "type": "string", + "enum": [ + "enhance", + "anime", + "photographic", + "digital-art", + "comic-book", + "fantasy-art", + "line-art", + "analog-film", + "neon-punk", + "isometric", + "low-poly", + "origami", + "modeling-compound", + "cinematic", + "3d-model", + "pixel-art", + "tile-texture" + ], + "description": "Guides the image model towards a particular style." + }, "InpaintingSearchModeRequestBody": { "type": "object", "properties": { @@ -16884,22 +6168,13 @@ "example": "./some/image.png" }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -16942,22 +6217,13 @@ "example": "./some/image.png" }, "prompt": { - "type": "string", - "minLength": 1, - "maxLength": 10000, - "description": "What you wish to see in the output image. A strong, descriptive prompt that clearly defines\nelements, colors, and subjects will lead to better results.\n\nTo control the weight of a given word use the format `(word:weight)`,\nwhere `word` is the word you'd like to control the weight of and `weight`\nis a value between 0 and 1. For example: `The sky was a crisp (blue:0.3) and (green:0.8)`\nwould convey a sky that was blue and green, but more green than blue." + "$ref": "#/components/schemas/Prompt" }, "negative_prompt": { - "type": "string", - "maxLength": 10000, - "description": "A blurb of text describing what you **do not** wish to see in the output image.\nThis is an advanced feature." + "$ref": "#/components/schemas/NegativePrompt" }, "seed": { - "type": "number", - "minimum": 0, - "maximum": 4294967294, - "default": 0, - "description": "A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass `0` to use a random seed.)" + "$ref": "#/components/schemas/Seed" }, "output_format": { "type": "string", @@ -16976,23 +6242,10 @@ "mode" ] }, - "StabilityClientID": { - "type": "string", - "maxLength": 256, - "description": "The name of your application, used to help us communicate app-specific debugging or moderation issues to you.", - "example": "my-awesome-app" - }, - "StabilityClientUserID": { - "type": "string", - "maxLength": 256, - "description": "A unique identifier for your end user. Used to help us communicate user-specific debugging or moderation issues to you. Feel free to obfuscate this value to protect user privacy.", - "example": "DiscordUser#9999" - }, - "StabilityClientVersion": { + "AudioPrompt": { "type": "string", - "maxLength": 256, - "description": "The version of your application, used to help us communicate version-specific debugging or moderation issues to you.", - "example": "1.2.1" + "maxLength": 10000, + "description": "What you wish the output audio to be. A strong, descriptive prompt that clearly defines\ninstruments, moods, styles, and genre will lead to better results.\n\nYou can make a prompt as simple or complex as you like. Simple prompts are good for clean\noutput audio. Complex prompts are good for adding texture and depth to the output audio." }, "Creativity": { "type": "number", @@ -17001,25 +6254,21 @@ "default": 0.35, "description": "Controls the likelihood of creating additional details not heavily conditioned by the init image." }, - "FalGenerationResponse": { - "type": "object", - "properties": { - "s3Url": { - "type": "string", - "nullable": true, - "description": "An S3 object URL in the form `s3://bucket/key` pointing to the generated asset.\nInternal callers can fetch this object from S3 to download the bytes. `null` when\nthe output was withheld (e.g. it failed content moderation — see the `finish-reason` header).", - "example": "s3://stabilityapi-outputs-123456789012-us-west-2/fal/engine/output-id" - }, - "contentType": { - "type": "string", - "description": "The MIME type of the generated asset.", - "example": "image/png" - } - }, - "required": [ - "s3Url", - "contentType" - ] + "AspectRatio": { + "type": "string", + "enum": [ + "21:9", + "16:9", + "3:2", + "5:4", + "1:1", + "4:5", + "2:3", + "9:16", + "9:21" + ], + "default": "1:1", + "description": "Controls the aspect ratio of the generated image." } }, "responses": { @@ -17031,84 +6280,556 @@ "$ref": "#/components/schemas/Error" }, "example": { - "id": "9160aa70-222f-4a36-9eb7-475e2668362a", - "name": "unauthorized", - "message": "missing authorization header" + "id": "9160aa70-222f-4a36-9eb7-475e2668362a", + "name": "unauthorized", + "message": "missing authorization header" + } + } + } + }, + "403": { + "description": "permission_denied: You lack the necessary permissions to perform this action", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "5cf19777-d17f-49fe-9bd9-39ff0ec6bb50", + "name": "permission_denied", + "message": "You do not have permission to access this resource" + } + } + } + }, + "404": { + "description": "not_found: The requested resource was not found (e.g. specifing a model that does not exist)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "92b19e7f-22a2-4e71-a821-90edda229293", + "name": "not_found", + "message": "The specified engine (ID some-fake-engine) was not found." + } + } + } + }, + "500": { + "description": "server_error: Some unexpected server error occurred", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "f81964d6-619b-453e-97bc-9fd7ac3f04e7", + "name": "server_error", + "message": "An unexpected server error occurred, please try again." + } + } + } + }, + "400FromGeneration": { + "description": "bad_request: general error for invalid parameters

\n\n

More specific errors:

\n\n - invalid_samples: Sample count may only be greater than 1 when the accept header is set to `application/json`\n - invalid_height_or_width: Height and width must be specified in increments of 64\n - invalid_file_size: The file size of one or more of the provided files is invalid\n - invalid_mime_type: The mime type of one or more of the provided files is invalid\n - invalid_image_dimensions: The dimensions of the provided `init_image` and `mask_image` do not match\n - invalid_mask_image: The parameter `mask_source` was set to `MASK_IMAGE_WHITE` or `MASK_IMAGE_BLACK` but no `mask_image` was provided\n - invalid_prompts: One or more of the prompts contains filtered words\n - invalid_pixel_count: Incorrect number of pixels specified. Requirements:\n - For 768 engines : 589,824 `height * width` 1,048,576\n - All other engines: 262,144 `height * width` 1,048,576", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "296a972f-666a-44a1-a3df-c9c28a1f56c0", + "name": "bad_request", + "message": "init_image: is required" + } + } + } + }, + "400FromUpscale": { + "description": "bad_request: general error for invalid parameters

\n\n

More specific errors:

\n\n - invalid_file_size: The file size of one or more of the provided files is invalid\n - invalid_mime_type: The mime type of one or more of the provided files is invalid\n - invalid_pixel_count: The requested image would exceed the maximum pixel count of 4,194,304", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "296a972f-666a-44a1-a3df-c9c28a1f56c0", + "name": "bad_request", + "message": "image: is required" + } + } + } + }, + "BadRequest": { + "description": "Invalid parameter(s), see the `errors` field for details.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "PayloadTooLarge": { + "description": "Your request was larger than 10MiB.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "4212a4b66fbe1cedca4bf2133d35dca5", + "name": "payload_too_large", + "errors": [ + "body: payloads cannot be larger than 10MiB in size" + ] + } + } + } + }, + "RateLimited": { + "description": "You have made more than 150 requests in 10 seconds.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + }, + "example": { + "id": "rate_limit_exceeded", + "name": "rate_limit_exceeded", + "errors": [ + "You have exceeded the rate limit of 150 requests within a 10 second period, and have been timed out for 60 seconds." + ] } } } }, - "403": { - "description": "permission_denied: You lack the necessary permissions to perform this action", + "InternalError": { + "description": "An internal error occurred. If the problem persists [contact support](https://kb.stability.ai/knowledge-base/kb-tickets/new).", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" }, "example": { - "id": "5cf19777-d17f-49fe-9bd9-39ff0ec6bb50", - "name": "permission_denied", - "message": "You do not have permission to access this resource" + "id": "2a1b2d4eafe2bc6ab4cd4d5c6133f513", + "name": "internal_error", + "errors": [ + "An unexpected server error has occurred, please try again later." + ] } } } }, - "404": { - "description": "not_found: The requested resource was not found (e.g. specifing a model that does not exist)", + "ContentModerated": { + "description": "Your request was flagged by our content moderation system.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Error" - }, - "example": { - "id": "92b19e7f-22a2-4e71-a821-90edda229293", - "name": "not_found", - "message": "The specified engine (ID some-fake-engine) was not found." + "$ref": "#/components/schemas/ContentModerationResponse" } } } }, - "500": { - "description": "server_error: Some unexpected server error occurred", + "GenerationNotFound": { + "description": "id: the generation either does not exist or has expired.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" }, "example": { - "id": "f81964d6-619b-453e-97bc-9fd7ac3f04e7", - "name": "server_error", - "message": "An unexpected server error occurred, please try again." + "id": "2bca35116bc5431d6dc4b4ea2ef3da2f", + "name": "generation_not_found", + "errors": [ + "id: the generation either does not exist or has expired." + ] } } } }, - "400FromGeneration": { - "description": "bad_request: general error for invalid parameters

\n\n

More specific errors:

\n\n - invalid_samples: Sample count may only be greater than 1 when the accept header is set to `application/json`\n - invalid_height_or_width: Height and width must be specified in increments of 64\n - invalid_file_size: The file size of one or more of the provided files is invalid\n - invalid_mime_type: The mime type of one or more of the provided files is invalid\n - invalid_image_dimensions: The dimensions of the provided `init_image` and `mask_image` do not match\n - invalid_mask_image: The parameter `mask_source` was set to `MASK_IMAGE_WHITE` or `MASK_IMAGE_BLACK` but no `mask_image` was provided\n - invalid_prompts: One or more of the prompts contains filtered words\n - invalid_pixel_count: Incorrect number of pixels specified. Requirements:\n - For 768 engines : 589,824 `height * width` 1,048,576\n - All other engines: 262,144 `height * width` 1,048,576", + "ImageClassificationFailed": { + "description": "Your request was well-formed, but rejected. See the `errors` field for details.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" }, - "example": { - "id": "296a972f-666a-44a1-a3df-c9c28a1f56c0", - "name": "bad_request", - "message": "init_image: is required" + "examples": { + "Invalid Language": { + "value": { + "id": "ff54b236a3acdde1522cb1ba641c43ed", + "name": "invalid_language", + "errors": [ + "English is the only supported language for this service." + ] + } + }, + "Public Figure Detected": { + "value": { + "id": "ff54b236a3acdde1522cb1ba641c43ed", + "name": "public_figure", + "errors": [ + "Our system detected the likeness of a public figure in your image. To comply with our guidelines, this request cannot be processed. Please upload a different image." + ] + } + } } } } }, - "400FromUpscale": { - "description": "bad_request: general error for invalid parameters

\n\n

More specific errors:

\n\n - invalid_file_size: The file size of one or more of the provided files is invalid\n - invalid_mime_type: The mime type of one or more of the provided files is invalid\n - invalid_pixel_count: The requested image would exceed the maximum pixel count of 4,194,304", + "AudioClassificationFailed": { + "description": "Your request was well-formed, but rejected. See the `errors` field for details.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" }, - "example": { - "id": "296a972f-666a-44a1-a3df-c9c28a1f56c0", - "name": "bad_request", - "message": "image: is required" + "examples": { + "Invalid Language": { + "value": { + "id": "ff54b236a3acdde1522cb1ba641c43ed", + "name": "invalid_language", + "errors": [ + "English is the only supported language for this service." + ] + } + }, + "Copyrighted Content Detected": { + "value": { + "id": "ff54b236a3acdde1522cb1ba641c43ed", + "name": "copyrighted_content", + "errors": [ + "Our system has detected the presence of copyrighted content in your audio. To comply with our guidelines, we cannot process this request. Please upload a different audio file." + ] + } + } + } + } + } + }, + "ImageGenerationSuccess": { + "description": "Generation was successful.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "examples": { + "png": { + "description": "raw bytes", + "value": "image/png" + }, + "pngJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/png" + }, + "jpeg": { + "description": "raw bytes", + "value": "image/jpeg" + }, + "jpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/jpeg" + }, + "webp": { + "description": "raw bytes", + "value": "image/webp" + }, + "webpJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/webp" + } + }, + "schema": { + "type": "string" + } + }, + "finish-reason": { + "$ref": "#/components/headers/ImageFinishReason" + }, + "seed": { + "$ref": "#/components/headers/Seed" + } + }, + "content": { + "image/png": { + "example": "The bytes of the generated png", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/png": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/jpeg": { + "example": "The bytes of the generated jpeg", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/jpeg": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/webp": { + "example": "The bytes of the generated webp", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/webp": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + } + } + }, + "AudioGenerationSuccess": { + "description": "Generation was successful.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated audio.\n\n To receive the bytes of the audio directly, specify `audio/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "examples": { + "mpeg": { + "description": "raw bytes", + "value": "audio/mpeg" + }, + "mpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=audio/mpeg" + }, + "wav": { + "description": "raw bytes", + "value": "audio/wav" + }, + "wavJSON": { + "description": "base64 encoded", + "value": "application/json; type=audio/wav" + } + }, + "schema": { + "type": "string" + } + }, + "finish-reason": { + "$ref": "#/components/headers/AudioFinishReason" + }, + "seed": { + "$ref": "#/components/headers/Seed" + } + }, + "content": { + "audio/mpeg": { + "example": "The bytes of the generated mpeg", + "schema": { + "$ref": "#/components/schemas/AudioBinaryResponse" + } + }, + "application/json; type=audio/mpeg": { + "schema": { + "$ref": "#/components/schemas/AudioJSONResponse" + } + }, + "audio/wav": { + "example": "The bytes of the generated wav", + "schema": { + "$ref": "#/components/schemas/AudioBinaryResponse" + } + }, + "application/json; type=audio/wav": { + "schema": { + "$ref": "#/components/schemas/AudioJSONResponse" + } + } + } + }, + "ImageInpaintSuccess": { + "description": "Inpainting was successful.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "examples": { + "jpeg": { + "description": "raw bytes", + "value": "image/jpeg" + }, + "jpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/jpeg" + }, + "png": { + "description": "raw bytes", + "value": "image/png" + }, + "pngJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/png" + }, + "webp": { + "description": "raw bytes", + "value": "image/webp" + }, + "webpJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/webp" + } + }, + "schema": { + "type": "string" + } + }, + "finish-reason": { + "$ref": "#/components/headers/ImageFinishReason" + }, + "seed": { + "$ref": "#/components/headers/Seed" + } + }, + "content": { + "image/jpeg": { + "example": "The bytes of the generated jpeg", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/jpeg": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/png": { + "example": "The bytes of the generated png", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/png": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/webp": { + "example": "The bytes of the generated webp", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/webp": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + } + } + }, + "ImageUpscaleSuccess": { + "description": "Upscale was successful.", + "headers": { + "x-request-id": { + "$ref": "#/components/headers/RequestID" + }, + "content-type": { + "description": "The format of the generated image.\n\n To receive the bytes of the image directly, specify `image/*` in the accept header. To receive the bytes base64 encoded inside of a JSON payload, specify `application/json`.", + "examples": { + "jpeg": { + "description": "raw bytes", + "value": "image/jpeg" + }, + "jpegJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/jpeg" + }, + "png": { + "description": "raw bytes", + "value": "image/png" + }, + "pngJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/png" + }, + "webp": { + "description": "raw bytes", + "value": "image/webp" + }, + "webpJSON": { + "description": "base64 encoded", + "value": "application/json; type=image/webp" + } + }, + "schema": { + "type": "string" + } + }, + "finish-reason": { + "$ref": "#/components/headers/ImageFinishReason" + }, + "seed": { + "$ref": "#/components/headers/Seed" + } + }, + "content": { + "image/jpeg": { + "example": "The bytes of the generated jpeg", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/jpeg": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/png": { + "example": "The bytes of the generated png", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/png": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + }, + "image/webp": { + "example": "The bytes of the generated webp", + "schema": { + "$ref": "#/components/schemas/ImageBinaryResponse" + } + }, + "application/json; type=image/webp": { + "schema": { + "$ref": "#/components/schemas/ImageJSONResponse" + } + } + } + }, + "ModelGenerationSuccess": { + "description": "Generation was successful.", + "headers": { + "content-type": { + "description": "The format of the 3D model.", + "schema": { + "type": "string", + "example": "model/gltf-binary" + } + } + }, + "content": { + "model/gltf-binary": { + "schema": { + "$ref": "#/components/schemas/ModelBinaryResponse" } } } @@ -17163,6 +6884,102 @@ ], "type": "string" } + }, + "Authorization": { + "schema": { + "type": "string", + "description": "Your [Stability API key](https://platform.stability.ai/account/keys), used to authenticate your requests. Although you may have multiple keys in your account, you should use the same key for all requests to this API.", + "minLength": 1 + }, + "required": true, + "name": "authorization", + "in": "header" + }, + "FormDataContentType": { + "schema": { + "type": "string", + "minLength": 1, + "description": "The content type of the request body. Do not manually specify this header; your HTTP client library will automatically include the appropriate boundary parameter.", + "example": "multipart/form-data" + }, + "required": true, + "name": "content-type", + "in": "header" + }, + "AcceptImage": { + "schema": { + "type": "string", + "default": "image/*", + "description": "Specify `image/*` to receive the bytes of the image directly. Otherwise specify `application/json` to receive the image as base64 encoded JSON.", + "enum": [ + "image/*", + "application/json" + ] + }, + "required": false, + "name": "accept", + "in": "header" + }, + "AcceptAudio": { + "schema": { + "type": "string", + "default": "audio/*", + "description": "Specify `audio/*` to receive the bytes of the audio directly. Otherwise specify `application/json` to receive the audio as base64 encoded JSON.", + "enum": [ + "audio/*", + "application/json" + ] + }, + "required": false, + "name": "accept", + "in": "header" + }, + "AcceptResult": { + "schema": { + "type": "string", + "default": "*/*", + "description": "Specify `*/*` to receive the bytes of the result directly. Otherwise specify `application/json` to receive the result as base64 encoded JSON.", + "enum": [ + "*/*", + "application/json" + ] + }, + "required": false, + "name": "accept", + "in": "header" + }, + "StabilityClientID": { + "schema": { + "type": "string", + "maxLength": 256, + "description": "The name of your application, used to help us communicate app-specific debugging or moderation issues to you.", + "example": "my-awesome-app" + }, + "required": false, + "name": "stability-client-id", + "in": "header" + }, + "StabilityClientUserID": { + "schema": { + "type": "string", + "maxLength": 256, + "description": "A unique identifier for your end user. Used to help us communicate user-specific debugging or moderation issues to you. Feel free to obfuscate this value to protect user privacy.", + "example": "DiscordUser#9999" + }, + "required": false, + "name": "stability-client-user-id", + "in": "header" + }, + "StabilityClientVersion": { + "schema": { + "type": "string", + "maxLength": 256, + "description": "The version of your application, used to help us communicate version-specific debugging or moderation issues to you.", + "example": "1.2.1" + }, + "required": false, + "name": "stability-client-version", + "in": "header" } }, "headers": { @@ -17188,18 +7005,41 @@ } }, "Seed": { - "example": 3817857576, + "description": "The seed used as random noise for this generation.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `seed`.", + "example": "343940597", "schema": { - "example": 787078103, - "type": "integer" + "type": "string" + } + }, + "RequestID": { + "description": "A unique identifier for this request.", + "schema": { + "type": "string" + } + }, + "ImageFinishReason": { + "schema": { + "type": "string", + "enum": [ + "SUCCESS", + "CONTENT_FILTERED" + ] + }, + "description": "Indicates the reason the generation finished.\n\n- `SUCCESS` = successful generation.\n- `CONTENT_FILTERED` = successful generation, however the output violated our content moderation\npolicy and has been blurred as a result.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." + }, + "AudioFinishReason": { + "schema": { + "type": "string", + "enum": [ + "SUCCESS" + ] }, - "description": "The seed used to generate the image. This header is only present when the `Accept` is set to `image/png`. Otherwise it is returned in the response body." + "description": "Indicates the reason the generation finished. It is always `SUCCESS` for this endpoint.\n\n> **NOTE:** This header is absent on JSON encoded responses because it is present in the body as `finish_reason`." } }, "securitySchemes": { "STABILITY_API_KEY": { "type": "apiKey", - "scheme": "bearer", "name": "authorization", "in": "header", "description": "Use your [Stability API key](https://platform.stability.ai/account/keys) to authentication requests to this App."