Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IImageGenerationClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IMediaClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IPredictionsClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public partial interface IVideoGenerationClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,28 @@ public partial interface IWaveSpeedAIClient : global::System.IDisposable


/// <summary>
///
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


/// <summary>
///
///
/// </summary>
public ImageGenerationClient ImageGeneration { get; }

/// <summary>
///
///
/// </summary>
public MediaClient Media { get; }

/// <summary>
///
///
/// </summary>
public PredictionsClient Predictions { get; }

/// <summary>
///
///
/// </summary>
public VideoGenerationClient VideoGeneration { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessGenerateFluxDevResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down Expand Up @@ -337,7 +337,7 @@ partial void ProcessGenerateFluxDevResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
//
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
Expand Down Expand Up @@ -369,7 +369,7 @@ partial void ProcessGenerateFluxDevResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 401)
{
string? __content_401 = null;
Expand Down Expand Up @@ -401,7 +401,7 @@ partial void ProcessGenerateFluxDevResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down Expand Up @@ -337,7 +337,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
//
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
Expand Down Expand Up @@ -369,7 +369,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 401)
{
string? __content_401 = null;
Expand Down Expand Up @@ -401,7 +401,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down Expand Up @@ -337,7 +337,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
//
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
Expand Down Expand Up @@ -369,7 +369,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 401)
{
string? __content_401 = null;
Expand Down Expand Up @@ -401,7 +401,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
__authorization.Location == "Header")
{
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
Expand Down Expand Up @@ -337,7 +337,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
//
//
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
Expand Down Expand Up @@ -369,7 +369,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 401)
{
string? __content_401 = null;
Expand Down Expand Up @@ -401,7 +401,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
h => h.Key,
h => h.Value));
}
//
//
if ((int)__response.StatusCode == 429)
{
string? __content_429 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class ImageGenerationClient : global::WaveSpeedAI.IImageGe
internal global::System.Lazy<global::System.Text.Json.Serialization.JsonSerializerContext> JsonSerializerContextProvider { get; set; } = new(() => global::WaveSpeedAI.SourceGenerationContext.Default);

/// <summary>
///
///
/// </summary>
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ImageGenerationRequestOutputFormatJsonConverter : global::Sy
{
return global::WaveSpeedAI.ImageGenerationRequestOutputFormatExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ImageGenerationRequestOutputFormatNullableJsonConverter : gl
{
return global::WaveSpeedAI.ImageGenerationRequestOutputFormatExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ListPredictionsRequestStatusJsonConverter : global::System.T
{
return global::WaveSpeedAI.ListPredictionsRequestStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class ListPredictionsRequestStatusNullableJsonConverter : global::
{
return global::WaveSpeedAI.ListPredictionsRequestStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class PredictionItemStatusJsonConverter : global::System.Text.Json
{
return global::WaveSpeedAI.PredictionItemStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class PredictionItemStatusNullableJsonConverter : global::System.T
{
return global::WaveSpeedAI.PredictionItemStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class TaskDataStatusJsonConverter : global::System.Text.Json.Seria
{
return global::WaveSpeedAI.TaskDataStatusExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class TaskDataStatusNullableJsonConverter : global::System.Text.Js
{
return global::WaveSpeedAI.TaskDataStatusExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization
{
return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp);
}

return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp);
}
if (reader.TryGetInt32(out int unixTimestampInt))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class UploadDataTypeJsonConverter : global::System.Text.Json.Seria
{
return global::WaveSpeedAI.UploadDataTypeExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class UploadDataTypeNullableJsonConverter : global::System.Text.Js
{
return global::WaveSpeedAI.UploadDataTypeExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class VideoGenerationRequestOutputFormatJsonConverter : global::Sy
{
return global::WaveSpeedAI.VideoGenerationRequestOutputFormatExtensions.ToEnum(stringValue) ?? default;
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed class VideoGenerationRequestOutputFormatNullableJsonConverter : gl
{
return global::WaveSpeedAI.VideoGenerationRequestOutputFormatExtensions.ToEnum(stringValue);
}

break;
}
case global::System.Text.Json.JsonTokenType.Number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace WaveSpeedAI
{
/// <summary>
///
///
/// </summary>
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Expand Down
Loading