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
9 changes: 4 additions & 5 deletions src/libs/Runway/Generated/Runway.Models.RequestActTwo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public sealed partial class RequestActTwo
/// </summary>
/// <default>"act_two"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "act_two";
public string Model { get; set; } = "act_two";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -116,21 +115,21 @@ public sealed partial class RequestActTwo
public RequestActTwo(
global::Runway.Character character,
global::Runway.RequestActTwoReferenceCharacterReferenceVideo reference,
string model,
int? seed,
bool? bodyControl,
int? expressionIntensity,
global::Runway.RequestActTwoRatio? ratio,
global::Runway.RequestActTwoContentModeration? contentModeration)
global::Runway.RequestActTwoContentModeration? contentModeration,
string model = "act_two")
{
this.Character = character;
this.Reference = reference ?? throw new global::System.ArgumentNullException(nameof(reference));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Seed = seed;
this.BodyControl = bodyControl;
this.ExpressionIntensity = expressionIntensity;
this.Ratio = ratio;
this.ContentModeration = contentModeration;
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestActTwoCharacterCharacterImage
/// </summary>
/// <default>"image"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "image";
public string Type { get; set; } = "image";

/// <summary>
/// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.<br/>
Expand Down Expand Up @@ -43,11 +42,11 @@ public sealed partial class RequestActTwoCharacterCharacterImage
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestActTwoCharacterCharacterImage(
string type,
string uri)
string uri,
string type = "image")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.Uri = uri;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestActTwoCharacterCharacterVideo
/// </summary>
/// <default>"video"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "video";
public string Type { get; set; } = "video";

/// <summary>
/// A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.<br/>
Expand Down Expand Up @@ -43,11 +42,11 @@ public sealed partial class RequestActTwoCharacterCharacterVideo
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestActTwoCharacterCharacterVideo(
string type,
string uri)
string uri,
string type = "video")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.Uri = uri;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestActTwoReferenceCharacterReferenceVideo
/// </summary>
/// <default>"video"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "video";
public string Type { get; set; } = "video";

/// <summary>
/// A video of a person performing in the manner that you would like your character to perform. The video must be between 3 and 30 seconds in duration. See [our docs](/assets/inputs#videos) on video inputs for more information.<br/>
Expand Down Expand Up @@ -43,11 +42,11 @@ public sealed partial class RequestActTwoReferenceCharacterReferenceVideo
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestActTwoReferenceCharacterReferenceVideo(
string type,
string uri)
string uri,
string type = "video")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.Uri = uri;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public sealed partial class RequestElevenMultilingualStsV2
/// </summary>
/// <default>"eleven_multilingual_sts_v2"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "eleven_multilingual_sts_v2";
public string Model { get; set; } = "eleven_multilingual_sts_v2";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -60,13 +59,13 @@ public sealed partial class RequestElevenMultilingualStsV2
public RequestElevenMultilingualStsV2(
global::Runway.Media media,
global::Runway.RequestElevenMultilingualStsV2VoiceRunwayPresetVoice voice,
string model,
bool? removeBackgroundNoise)
bool? removeBackgroundNoise,
string model = "eleven_multilingual_sts_v2")
{
this.Media = media;
this.Voice = voice ?? throw new global::System.ArgumentNullException(nameof(voice));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.RemoveBackgroundNoise = removeBackgroundNoise;
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestElevenMultilingualStsV2MediaSpeechToSpeechAud
/// </summary>
/// <default>"audio"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "audio";
public string Type { get; set; } = "audio";

/// <summary>
/// A HTTPS URL, Runway or data URI containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.<br/>
Expand Down Expand Up @@ -43,11 +42,11 @@ public sealed partial class RequestElevenMultilingualStsV2MediaSpeechToSpeechAud
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestElevenMultilingualStsV2MediaSpeechToSpeechAudio(
string type,
string uri)
string uri,
string type = "audio")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.Uri = uri;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestElevenMultilingualStsV2MediaSpeechToSpeechVid
/// </summary>
/// <default>"video"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "video";
public string Type { get; set; } = "video";

/// <summary>
/// A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.<br/>
Expand Down Expand Up @@ -43,11 +42,11 @@ public sealed partial class RequestElevenMultilingualStsV2MediaSpeechToSpeechVid
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestElevenMultilingualStsV2MediaSpeechToSpeechVideo(
string type,
string uri)
string uri,
string type = "video")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.Uri = uri;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestElevenMultilingualStsV2VoiceRunwayPresetVoice
/// </summary>
/// <default>"runway-preset"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "runway-preset";
public string Type { get; set; } = "runway-preset";

/// <summary>
/// The preset voice ID to use for the generated speech.
Expand All @@ -41,11 +40,11 @@ public sealed partial class RequestElevenMultilingualStsV2VoiceRunwayPresetVoice
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestElevenMultilingualStsV2VoiceRunwayPresetVoice(
string type,
global::Runway.RequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetId presetId)
global::Runway.RequestElevenMultilingualStsV2VoiceRunwayPresetVoicePresetId presetId,
string type = "runway-preset")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.PresetId = presetId;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public sealed partial class RequestElevenMultilingualV2
/// </summary>
/// <default>"eleven_multilingual_v2"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "eleven_multilingual_v2";
public string Model { get; set; } = "eleven_multilingual_v2";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -52,11 +51,11 @@ public sealed partial class RequestElevenMultilingualV2
public RequestElevenMultilingualV2(
string promptText,
global::Runway.RequestElevenMultilingualV2VoiceRunwayPresetVoice voice,
string model)
string model = "eleven_multilingual_v2")
{
this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText));
this.Voice = voice ?? throw new global::System.ArgumentNullException(nameof(voice));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public sealed partial class RequestElevenMultilingualV2VoiceRunwayPresetVoice
/// </summary>
/// <default>"runway-preset"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Type { get; set; } = "runway-preset";
public string Type { get; set; } = "runway-preset";

/// <summary>
/// The preset voice ID to use for the generated speech.
Expand All @@ -41,11 +40,11 @@ public sealed partial class RequestElevenMultilingualV2VoiceRunwayPresetVoice
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public RequestElevenMultilingualV2VoiceRunwayPresetVoice(
string type,
global::Runway.RequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId presetId)
global::Runway.RequestElevenMultilingualV2VoiceRunwayPresetVoicePresetId presetId,
string type = "runway-preset")
{
this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type));
this.PresetId = presetId;
this.Type = type;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public sealed partial class RequestElevenTextToSoundV2
/// </summary>
/// <default>"eleven_text_to_sound_v2"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "eleven_text_to_sound_v2";
public string Model { get; set; } = "eleven_text_to_sound_v2";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -61,14 +60,14 @@ public sealed partial class RequestElevenTextToSoundV2
#endif
public RequestElevenTextToSoundV2(
string promptText,
string model,
double? duration,
bool? loop)
bool? loop,
string model = "eleven_text_to_sound_v2")
{
this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Duration = duration;
this.Loop = loop;
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public sealed partial class RequestElevenVoiceDubbing
/// </summary>
/// <default>"eleven_voice_dubbing"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "eleven_voice_dubbing";
public string Model { get; set; } = "eleven_voice_dubbing";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down Expand Up @@ -83,17 +82,17 @@ public sealed partial class RequestElevenVoiceDubbing
public RequestElevenVoiceDubbing(
string audioUri,
global::Runway.RequestElevenVoiceDubbingTargetLang targetLang,
string model,
bool? disableVoiceCloning,
bool? dropBackgroundAudio,
int? numSpeakers)
int? numSpeakers,
string model = "eleven_voice_dubbing")
{
this.AudioUri = audioUri;
this.TargetLang = targetLang;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.DisableVoiceCloning = disableVoiceCloning;
this.DropBackgroundAudio = dropBackgroundAudio;
this.NumSpeakers = numSpeakers;
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public sealed partial class RequestElevenVoiceIsolation
/// </summary>
/// <default>"eleven_voice_isolation"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "eleven_voice_isolation";
public string Model { get; set; } = "eleven_voice_isolation";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -44,10 +43,10 @@ public sealed partial class RequestElevenVoiceIsolation
#endif
public RequestElevenVoiceIsolation(
string audioUri,
string model)
string model = "eleven_voice_isolation")
{
this.AudioUri = audioUri;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.Model = model;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public sealed partial class RequestGemini25Flash
/// </summary>
/// <default>"gemini_2.5_flash"</default>
[global::System.Text.Json.Serialization.JsonPropertyName("model")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Model { get; set; } = "gemini_2.5_flash";
public string Model { get; set; } = "gemini_2.5_flash";

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand All @@ -62,13 +61,13 @@ public sealed partial class RequestGemini25Flash
public RequestGemini25Flash(
string promptText,
global::Runway.RequestGemini25FlashRatio ratio,
string model,
global::System.Collections.Generic.IList<global::Runway.RequestGemini25FlashReferenceImage>? referenceImages)
global::System.Collections.Generic.IList<global::Runway.RequestGemini25FlashReferenceImage>? referenceImages,
string model = "gemini_2.5_flash")
{
this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText));
this.Ratio = ratio;
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.ReferenceImages = referenceImages;
this.Model = model;
}

/// <summary>
Expand Down
Loading
Loading