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
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Assets.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ public Assets(
public Assets()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ public AudioGenerationRequest(
public AudioGenerationRequest()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Concept.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public Concept(
public Concept()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Credits.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public Credits(
public Credits()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Error.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public Error(
public Error()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Generation.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ public Generation(
public Generation()
{
}

}
}
13 changes: 13 additions & 0 deletions src/libs/Luma/Generated/Luma.Models.GenerationReference.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,18 @@ public GenerationReference(
public GenerationReference()
{
}

/// <summary>
/// Creates a new <see cref="GenerationReference"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static GenerationReference FromId(global::System.Guid id)
{
return new GenerationReference
{
Id = id,
};
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.GenerationRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,6 @@ public GenerationRequest(
public GenerationRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,6 @@ public ImageGenerationRequest(
public ImageGenerationRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public ImageGenerationRequestCharacterRef(
public ImageGenerationRequestCharacterRef()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.ImageIdentity.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public ImageIdentity(
public ImageIdentity()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.ImageRef.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public ImageRef(
public ImageRef()
{
}

}
}
13 changes: 13 additions & 0 deletions src/libs/Luma/Generated/Luma.Models.ImageReference.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,18 @@ public ImageReference(
public ImageReference()
{
}

/// <summary>
/// Creates a new <see cref="ImageReference"/> from its single non-const required field,
/// hardcoding any const discriminator fields.
/// </summary>
public static ImageReference FromUrl(string url)
{
return new ImageReference
{
Url = url,
};
}

}
}
14 changes: 14 additions & 0 deletions src/libs/Luma/Generated/Luma.Models.Keyframe.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ public bool TryPickGeneration(
return IsGeneration;
}

/// <summary>
///
/// </summary>
public global::Luma.GenerationReference PickGeneration() => IsGeneration
? Generation!
: throw new global::System.InvalidOperationException($"Expected union variant 'Generation' but the value was {ToString()}.");

/// <summary>
/// The image object<br/>
/// Example: {"type":"image","url":"https://example.com/image.jpg"}
Expand Down Expand Up @@ -75,6 +82,13 @@ public bool TryPickImage(
value = Image;
return IsImage;
}

/// <summary>
///
/// </summary>
public global::Luma.ImageReference PickImage() => IsImage
? Image!
: throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public KeyframeDiscriminator(
public KeyframeDiscriminator()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Keyframes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ public Keyframes(
public Keyframes()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ public ListGenerationResponse(
public ListGenerationResponse()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.Media.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ public Media(
public Media()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.ModifyImageRef.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ public ModifyImageRef(
public ModifyImageRef()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ public ModifyVideoRequest(
public ModifyVideoRequest()
{
}

}
}
1 change: 1 addition & 0 deletions src/libs/Luma/Generated/Luma.Models.PingResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ public PingResponse(
public PingResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,6 @@ public ReframeImageRequest(
public ReframeImageRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,6 @@ public ReframeVideoRequest(
public ReframeVideoRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ public UpscaleVideoGenerationRequest(
public UpscaleVideoGenerationRequest()
{
}

}
}
14 changes: 14 additions & 0 deletions src/libs/Luma/Generated/Luma.Models.VideoModelOutputDuration.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickEnum(
return IsEnum;
}

/// <summary>
///
/// </summary>
public global::Luma.VideoModelOutputDurationEnum PickEnum() => IsEnum
? Enum!.Value
: throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickVideoModelOutputDurationVariant2(
value = VideoModelOutputDurationVariant2;
return IsVideoModelOutputDurationVariant2;
}

/// <summary>
///
/// </summary>
public string PickVideoModelOutputDurationVariant2() => IsVideoModelOutputDurationVariant2
? VideoModelOutputDurationVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'VideoModelOutputDurationVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickEnum(
return IsEnum;
}

/// <summary>
///
/// </summary>
public global::Luma.VideoModelOutputResolutionEnum PickEnum() => IsEnum
? Enum!.Value
: throw new global::System.InvalidOperationException($"Expected union variant 'Enum' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickVideoModelOutputResolutionVariant2(
value = VideoModelOutputResolutionVariant2;
return IsVideoModelOutputResolutionVariant2;
}

/// <summary>
///
/// </summary>
public string PickVideoModelOutputResolutionVariant2() => IsVideoModelOutputResolutionVariant2
? VideoModelOutputResolutionVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'VideoModelOutputResolutionVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
49 changes: 49 additions & 0 deletions src/libs/Luma/Generated/Luma.OneOf.7.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -98,6 +112,13 @@ public bool TryPickValue3(
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -128,6 +149,13 @@ public bool TryPickValue4(
return IsValue4;
}

/// <summary>
///
/// </summary>
public T4 PickValue4() => IsValue4
? Value4!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -158,6 +186,13 @@ public bool TryPickValue5(
return IsValue5;
}

/// <summary>
///
/// </summary>
public T5 PickValue5() => IsValue5
? Value5!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -188,6 +223,13 @@ public bool TryPickValue6(
return IsValue6;
}

/// <summary>
///
/// </summary>
public T6 PickValue6() => IsValue6
? Value6!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -217,6 +259,13 @@ public bool TryPickValue7(
value = Value7;
return IsValue7;
}

/// <summary>
///
/// </summary>
public T7 PickValue7() => IsValue7
? Value7!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Loading