diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesApiGroupCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesApiGroupCommand.g.cs index 811ddcb..3f67ee1 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesApiGroupCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesApiGroupCommand.g.cs @@ -9,6 +9,7 @@ internal static class RecipesApiGroupCommand public static Command Create() { var command = new Command(@"recipes", @"Recipes endpoint commands."); + command.Subcommands.Add(RecipesCreateRecipesAdLocalizationCommandApiCommand.Create()); command.Subcommands.Add(RecipesCreateRecipesMarketingStockImageCommandApiCommand.Create()); command.Subcommands.Add(RecipesCreateRecipesMultiShotVideoCommandApiCommand.Create()); command.Subcommands.Add(RecipesCreateRecipesProductAdCommandApiCommand.Create()); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesCreateRecipesAdLocalizationCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesCreateRecipesAdLocalizationCommandApiCommand.g.cs new file mode 100644 index 0000000..49c7a14 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/RecipesCreateRecipesAdLocalizationCommandApiCommand.g.cs @@ -0,0 +1,95 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class RecipesCreateRecipesAdLocalizationCommandApiCommand +{ + private static Option XRunwayVersion { get; } = new( + name: @"--x-runway-version") + { + Description = @"The version of the RunwayML API being used. You can read more about versioning [here](/api-details/versioning).", + DefaultValueFactory = _ => "2024-11-06", + }; + + private static Option Version { get; } = new( + name: @"--version") + { + Description = @"Workflow version. Use a dated version (e.g. ""2026-06"") to pin behavior, or ""unsafe-latest"" to track the newest stable version (may break without notice).", + Required = true, + }; + + private static Option ReferenceImage { get; } = new( + name: @"--reference-image") + { + Description = @"Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs.", + Required = true, + }; + + private static Option TargetLanguage { get; } = new( + name: @"--target-language") + { + Description = @"Target language for the localized ad. Use ISO-style codes (e.g. ""ja"" for Japanese, ""es"" for Spanish).", + Required = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Runway.CreateRecipesAdLocalizationResponse value, global::System.Text.Json.Serialization.JsonSerializerContext context, bool truncateLongStrings) + { + string? text = null; + CustomizeResponseText(parseResult, value, ref text); + if (!string.IsNullOrWhiteSpace(text)) + { + return text; + } + + var hints = new Dictionary(StringComparer.OrdinalIgnoreCase) + { + }; + CustomizeResponseFormatHints(hints); + return CliRuntime.FormatHumanReadable(value, context, truncateLongStrings, hints); + } + + static partial void CustomizeResponseText(ParseResult parseResult, global::Runway.CreateRecipesAdLocalizationResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"create-recipes-ad-localization", @"Localize an ad image +Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging."); + command.Options.Add(XRunwayVersion); + command.Options.Add(Version); + command.Options.Add(ReferenceImage); + command.Options.Add(TargetLanguage); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + var version = parseResult.GetRequiredValue(Version); + var referenceImage = parseResult.GetRequiredValue(ReferenceImage); + var targetLanguage = parseResult.GetRequiredValue(TargetLanguage); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Recipes.CreateRecipesAdLocalizationAsync( + xRunwayVersion: xRunwayVersion, + version: version, + referenceImage: referenceImage, + targetLanguage: targetLanguage, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + await CliRuntime.WriteResponseAsync( + parseResult, + response, + global::Runway.SourceGenerationContext.Default, + FormatResponse, + cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.IRecipesClient.CreateRecipesAdLocalization.g.cs b/src/libs/Runway/Generated/Runway.IRecipesClient.CreateRecipesAdLocalization.g.cs new file mode 100644 index 0000000..bc3d68f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IRecipesClient.CreateRecipesAdLocalization.g.cs @@ -0,0 +1,90 @@ +#nullable enable + +namespace Runway +{ + public partial interface IRecipesClient + { + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// // npm install --save @runwayml/sdk
+ /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const task = await client.recipes.adLocalization({
+ /// version: '2026-06',
+ /// referenceImage: { uri: 'https://example.com/source-ad.jpg' },
+ /// targetLanguage: 'ja',
+ /// });
+ /// console.log(task); + ///
+ global::System.Threading.Tasks.Task CreateRecipesAdLocalizationAsync( + + global::Runway.CreateRecipesAdLocalizationRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// // npm install --save @runwayml/sdk
+ /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const task = await client.recipes.adLocalization({
+ /// version: '2026-06',
+ /// referenceImage: { uri: 'https://example.com/source-ad.jpg' },
+ /// targetLanguage: 'ja',
+ /// });
+ /// console.log(task); + ///
+ global::System.Threading.Tasks.Task> CreateRecipesAdLocalizationAsResponseAsync( + + global::Runway.CreateRecipesAdLocalizationRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + /// + /// + /// Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs. + /// + /// + /// Target language for the localized ad. Use ISO-style codes (e.g. "ja" for Japanese, "es" for Spanish). + /// + /// 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 CreateRecipesAdLocalizationAsync( + global::Runway.CreateRecipesAdLocalizationRequestVersion version, + global::Runway.CreateRecipesAdLocalizationRequestReferenceImage referenceImage, + global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage targetLanguage, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs new file mode 100644 index 0000000..c0a221d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage 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::Runway.CreateRecipesAdLocalizationRequestTargetLanguageExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguageExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullable.g.cs new file mode 100644 index 0000000..ead7610 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRecipesAdLocalizationRequestTargetLanguageNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? 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::Runway.CreateRecipesAdLocalizationRequestTargetLanguageExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? 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::Runway.CreateRecipesAdLocalizationRequestTargetLanguageExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersion.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersion.g.cs new file mode 100644 index 0000000..ec899f5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersion.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRecipesAdLocalizationRequestVersionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRecipesAdLocalizationRequestVersion 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::Runway.CreateRecipesAdLocalizationRequestVersionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRecipesAdLocalizationRequestVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRecipesAdLocalizationRequestVersion); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRecipesAdLocalizationRequestVersion value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRecipesAdLocalizationRequestVersionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullable.g.cs new file mode 100644 index 0000000..a5cc748 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRecipesAdLocalizationRequestVersionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRecipesAdLocalizationRequestVersion? 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::Runway.CreateRecipesAdLocalizationRequestVersionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRecipesAdLocalizationRequestVersion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRecipesAdLocalizationRequestVersion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRecipesAdLocalizationRequestVersion? 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::Runway.CreateRecipesAdLocalizationRequestVersionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs index fcaef92..ab03818 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs @@ -457,6 +457,14 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetDocumentsSortJsonConverter), typeof(global::Runway.JsonConverters.GetDocumentsSortNullableJsonConverter), @@ -1213,6 +1221,10 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType), TypeInfoPropertyName = "CreateWorkflowsRequestNodeOutputsDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestVersion), TypeInfoPropertyName = "CreateRecipesAdLocalizationRequestVersion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestReferenceImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage), TypeInfoPropertyName = "CreateRecipesAdLocalizationRequestTargetLanguage2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsSort), TypeInfoPropertyName = "GetDocumentsSort2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsOrder), TypeInfoPropertyName = "GetDocumentsOrder2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse))] @@ -1305,10 +1317,6 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant2TranscriptItemRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1764,6 +1772,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetDocumentsSortJsonConverter), typeof(global::Runway.JsonConverters.GetDocumentsSortNullableJsonConverter), @@ -2116,6 +2132,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2Tool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2ToolType), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant2ToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3))] @@ -2323,6 +2343,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus), TypeInfoPropertyName = "GetWorkflowInvocationsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationResponse2))] [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))] @@ -2672,6 +2694,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateVoicesPreviewRequestModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateWorkflowsRequestNodeOutputsDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetDocumentsSortJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetDocumentsSortNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetDocumentsOrderJsonConverter()); diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs index 48453b8..60f2307 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs @@ -1640,1215 +1640,1239 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Runway.GetDocumentsSort? Type403 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequest? Type403 { get; set; } /// /// /// - public global::Runway.GetDocumentsOrder? Type404 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestVersion? Type404 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse? Type405 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? Type405 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type406 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? Type406 { get; set; } /// /// /// - public global::Runway.DataItem? Type407 { get; set; } + public global::Runway.GetDocumentsSort? Type407 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type408 { get; set; } + public global::Runway.GetDocumentsOrder? Type408 { get; set; } /// /// /// - public global::Runway.Voice4? Type409 { get; set; } + public global::Runway.GetAvatarsResponse? Type409 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type410 { get; set; } + public global::System.Collections.Generic.IList? Type410 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type411 { get; set; } + public global::Runway.DataItem? Type411 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type412 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type412 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type413 { get; set; } + public global::Runway.Voice4? Type413 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type414 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type414 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type415 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type415 { get; set; } /// /// /// - public global::Runway.Voice5? Type416 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type416 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type417 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type417 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type418 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type418 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type419 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type419 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type420 { get; set; } + public global::Runway.Voice5? Type420 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type421 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type421 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type422 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type422 { get; set; } /// /// /// - public global::Runway.Voice6? Type423 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type423 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type424 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type424 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type425 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type425 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type426 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type426 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type427 { get; set; } + public global::Runway.Voice6? Type427 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type428 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type428 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type429 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type429 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type430 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type430 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponse? Type431 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type431 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessing? Type432 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type432 { get; set; } /// /// /// - public global::Runway.Voice7? Type433 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type433 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type434 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type434 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type435 { get; set; } + public global::Runway.CreateAvatarsResponse? Type435 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type436 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessing? Type436 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type437 { get; set; } + public global::Runway.Voice7? Type437 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type438 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type438 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReady? Type439 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type439 { get; set; } /// /// /// - public global::Runway.Voice8? Type440 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type440 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type441 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type441 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type442 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type442 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type443 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReady? Type443 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type444 { get; set; } + public global::Runway.Voice8? Type444 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type445 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type445 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailed? Type446 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type446 { get; set; } /// /// /// - public global::Runway.Voice9? Type447 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type447 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type448 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type448 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type449 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type449 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type450 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailed? Type450 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type451 { get; set; } + public global::Runway.Voice9? Type451 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type452 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type452 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminator? Type453 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type453 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type454 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type454 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse? Type455 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type455 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type456 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type456 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItem? Type457 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminator? Type457 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type458 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type458 { get; set; } /// /// /// - public global::Runway.AvatarVariant1? Type459 { get; set; } + public global::Runway.GetAvatarConversationsResponse? Type459 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type460 { get; set; } + public global::System.Collections.Generic.IList? Type460 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type461 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItem? Type461 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type462 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type462 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type463 { get; set; } + public global::Runway.AvatarVariant1? Type463 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponse? Type464 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type464 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type465 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type465 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponseByDayItem? Type466 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type466 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse2? Type467 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type467 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1? Type468 { get; set; } + public global::Runway.GetAvatarUsageResponse? Type468 { get; set; } /// /// /// - public global::Runway.AvatarVariant12? Type469 { get; set; } + public global::System.Collections.Generic.IList? Type469 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type470 { get; set; } + public global::Runway.GetAvatarUsageResponseByDayItem? Type470 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type471 { get; set; } + public global::Runway.GetAvatarConversationsResponse2? Type471 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type472 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1? Type472 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type473 { get; set; } + public global::Runway.AvatarVariant12? Type473 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type474 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type474 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type475 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type475 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type476 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type476 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type477 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type477 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type478 { get; set; } + public global::System.Collections.Generic.IList? Type478 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type479 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type479 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type480 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type480 { get; set; } /// /// /// - public global::Runway.AnyOf? Type481 { get; set; } + public global::System.Collections.Generic.IList? Type481 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type482 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type482 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type483 { get; set; } + public global::System.Collections.Generic.IList? Type483 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type484 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type484 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2? Type485 { get; set; } + public global::Runway.AnyOf? Type485 { get; set; } /// /// /// - public global::Runway.AvatarVariant13? Type486 { get; set; } + public global::System.Collections.Generic.IList? Type486 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type487 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type487 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type488 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type488 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type489 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2? Type489 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type490 { get; set; } + public global::Runway.AvatarVariant13? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type491 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type492 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type492 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type493 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type493 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type494 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type494 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type495 { get; set; } + public global::System.Collections.Generic.IList? Type495 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type496 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type496 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type497 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type497 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type498 { get; set; } + public global::System.Collections.Generic.IList? Type498 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type499 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type499 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type500 { get; set; } + public global::System.Collections.Generic.IList? Type500 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3? Type501 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type501 { get; set; } /// /// /// - public global::Runway.AvatarVariant14? Type502 { get; set; } + public global::System.Collections.Generic.IList? Type502 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type503 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type503 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type504 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type504 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type505 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3? Type505 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type506 { get; set; } + public global::Runway.AvatarVariant14? Type506 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type507 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type507 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type508 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type508 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type509 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type509 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type510 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type510 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type511 { get; set; } + public global::System.Collections.Generic.IList? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type512 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type513 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type513 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type514 { get; set; } + public global::System.Collections.Generic.IList? Type514 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type515 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type515 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type516 { get; set; } + public global::System.Collections.Generic.IList? Type516 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminator? Type517 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type517 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type518 { get; set; } + public global::System.Collections.Generic.IList? Type518 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse2? Type519 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type519 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessing? Type520 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type520 { get; set; } /// /// /// - public global::Runway.Voice10? Type521 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminator? Type521 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type522 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type522 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type523 { get; set; } + public global::Runway.GetAvatarsResponse2? Type523 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type524 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessing? Type524 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type525 { get; set; } + public global::Runway.Voice10? Type525 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type526 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type526 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReady? Type527 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type527 { get; set; } /// /// /// - public global::Runway.Voice11? Type528 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type528 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type529 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type529 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type530 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type530 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type531 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReady? Type531 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type532 { get; set; } + public global::Runway.Voice11? Type532 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type533 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type533 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailed? Type534 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type534 { get; set; } /// /// /// - public global::Runway.Voice12? Type535 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type535 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type536 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type536 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type537 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type537 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type538 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailed? Type538 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type539 { get; set; } + public global::Runway.Voice12? Type539 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type540 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type540 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminator? Type541 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type541 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type542 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type542 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse? Type543 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type543 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessing? Type544 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type544 { get; set; } /// /// /// - public global::Runway.Voice13? Type545 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminator? Type545 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type546 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type546 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type547 { get; set; } + public global::Runway.PatchAvatarsResponse? Type547 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type548 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessing? Type548 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type549 { get; set; } + public global::Runway.Voice13? Type549 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type550 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type550 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReady? Type551 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type551 { get; set; } /// /// /// - public global::Runway.Voice14? Type552 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type552 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type553 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type553 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type554 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type554 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type555 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReady? Type555 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type556 { get; set; } + public global::Runway.Voice14? Type556 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type557 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type557 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailed? Type558 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type558 { get; set; } /// /// /// - public global::Runway.Voice15? Type559 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type559 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type560 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type560 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type561 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type561 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type562 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailed? Type562 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type563 { get; set; } + public global::Runway.Voice15? Type563 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type564 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type564 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminator? Type565 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type565 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type566 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type566 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse2? Type567 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type567 { get; set; } /// /// /// - public global::Runway.CreateAvatarVideosResponse? Type568 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type568 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponse? Type569 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminator? Type569 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseType? Type570 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type570 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type571 { get; set; } + public global::Runway.PatchAvatarsResponse2? Type571 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseUsedByItem? Type572 { get; set; } + public global::Runway.CreateAvatarVideosResponse? Type572 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse? Type573 { get; set; } + public global::Runway.CreateDocumentsResponse? Type573 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type574 { get; set; } + public global::Runway.CreateDocumentsResponseType? Type574 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItem? Type575 { get; set; } + public global::System.Collections.Generic.IList? Type575 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemType? Type576 { get; set; } + public global::Runway.CreateDocumentsResponseUsedByItem? Type576 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type577 { get; set; } + public global::Runway.GetDocumentsResponse? Type577 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse2? Type579 { get; set; } + public global::Runway.GetDocumentsResponseDataItem? Type579 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseType? Type580 { get; set; } + public global::Runway.GetDocumentsResponseDataItemType? Type580 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type581 { get; set; } + public global::System.Collections.Generic.IList? Type581 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseUsedByItem? Type582 { get; set; } + public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type582 { get; set; } /// /// /// - public global::Runway.CreateRealtimeSessionsResponse? Type583 { get; set; } + public global::Runway.GetDocumentsResponse2? Type583 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponse? Type584 { get; set; } + public global::Runway.GetDocumentsResponseType? Type584 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type585 { get; set; } + public global::System.Collections.Generic.IList? Type585 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionReady? Type586 { get; set; } + public global::Runway.GetDocumentsResponseUsedByItem? Type586 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type587 { get; set; } + public global::Runway.CreateRealtimeSessionsResponse? Type587 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type588 { get; set; } + public global::Runway.GetRealtimeSessionsResponse? Type588 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type589 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type589 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type590 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionReady? Type590 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type591 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type591 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type592 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type592 { get; set; } /// /// /// - public global::Runway.GetTasksResponse? Type593 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type593 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant1? Type594 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type594 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant2? Type595 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type595 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant3? Type596 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type596 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant4? Type597 { get; set; } + public global::Runway.GetTasksResponse? Type597 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant5? Type598 { get; set; } + public global::Runway.GetTasksResponseVariant1? Type598 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant6? Type599 { get; set; } + public global::Runway.GetTasksResponseVariant2? Type599 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminator? Type600 { get; set; } + public global::Runway.GetTasksResponseVariant3? Type600 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminatorStatus? Type601 { get; set; } + public global::Runway.GetTasksResponseVariant4? Type601 { get; set; } /// /// /// - public global::Runway.GetTasksResponse2? Type602 { get; set; } + public global::Runway.GetTasksResponseVariant5? Type602 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse? Type603 { get; set; } + public global::Runway.GetTasksResponseVariant6? Type603 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse2? Type604 { get; set; } + public global::Runway.GetTasksResponseDiscriminator? Type604 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse? Type605 { get; set; } + public global::Runway.GetTasksResponseDiscriminatorStatus? Type605 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse2? Type606 { get; set; } + public global::Runway.GetTasksResponse2? Type606 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse? Type607 { get; set; } + public global::Runway.CreateImageToVideoResponse? Type607 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse2? Type608 { get; set; } + public global::Runway.CreateImageToVideoResponse2? Type608 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse? Type609 { get; set; } + public global::Runway.CreateTextToVideoResponse? Type609 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse2? Type610 { get; set; } + public global::Runway.CreateTextToVideoResponse2? Type610 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse? Type611 { get; set; } + public global::Runway.CreateVideoToVideoResponse? Type611 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse2? Type612 { get; set; } + public global::Runway.CreateVideoToVideoResponse2? Type612 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse? Type613 { get; set; } + public global::Runway.CreateTextToImageResponse? Type613 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse2? Type614 { get; set; } + public global::Runway.CreateTextToImageResponse2? Type614 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse? Type615 { get; set; } + public global::Runway.CreateImageUpscaleResponse? Type615 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse2? Type616 { get; set; } + public global::Runway.CreateImageUpscaleResponse2? Type616 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse? Type617 { get; set; } + public global::Runway.CreateVideoUpscaleResponse? Type617 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse2? Type618 { get; set; } + public global::Runway.CreateVideoUpscaleResponse2? Type618 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse? Type619 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse? Type619 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse2? Type620 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse2? Type620 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse? Type621 { get; set; } + public global::Runway.CreateSoundEffectResponse? Type621 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse2? Type622 { get; set; } + public global::Runway.CreateSoundEffectResponse2? Type622 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse? Type623 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse? Type623 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse2? Type624 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse2? Type624 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse? Type625 { get; set; } + public global::Runway.CreateTextToSpeechResponse? Type625 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse2? Type626 { get; set; } + public global::Runway.CreateTextToSpeechResponse2? Type626 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponse? Type627 { get; set; } + public global::Runway.CreateVoiceDubbingResponse? Type627 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTier? Type628 { get; set; } + public global::Runway.CreateVoiceDubbingResponse2? Type628 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type629 { get; set; } + public global::Runway.CreateVoiceIsolationResponse? Type629 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTierModels2? Type630 { get; set; } + public global::Runway.CreateVoiceIsolationResponse2? Type630 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsage? Type631 { get; set; } + public global::Runway.GetOrganizationResponse? Type631 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type632 { get; set; } + public global::Runway.GetOrganizationResponseTier? Type632 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsageModels2? Type633 { get; set; } + public global::System.Collections.Generic.Dictionary? Type633 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponse? Type634 { get; set; } + public global::Runway.GetOrganizationResponseTierModels2? Type634 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type635 { get; set; } + public global::Runway.GetOrganizationResponseUsage? Type635 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResult? Type636 { get; set; } + public global::System.Collections.Generic.Dictionary? Type636 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type637 { get; set; } + public global::Runway.GetOrganizationResponseUsageModels2? Type637 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type638 { get; set; } + public global::Runway.CreateOrganizationUsageResponse? Type638 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type639 { get; set; } + public global::System.Collections.Generic.IList? Type639 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type640 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResult? Type640 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseModel? Type641 { get; set; } + public global::System.Collections.Generic.IList? Type641 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse? Type642 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type642 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type643 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type643 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse2? Type644 { get; set; } + public global::System.Collections.Generic.IList? Type644 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse? Type645 { get; set; } + public global::Runway.CreateOrganizationUsageResponseModel? Type645 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse2? Type646 { get; set; } + public global::Runway.CreateUploadsResponse? Type646 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse? Type647 { get; set; } + public global::System.Collections.Generic.Dictionary? Type647 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse2? Type648 { get; set; } + public global::Runway.CreateUploadsResponse2? Type648 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse? Type649 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse? Type649 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse2? Type650 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse2? Type650 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse? Type651 { get; set; } + public global::Runway.CreateRecipesProductAdResponse? Type651 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse2? Type652 { get; set; } + public global::Runway.CreateRecipesProductAdResponse2? Type652 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse? Type653 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse? Type653 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse2? Type654 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse2? Type654 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse? Type655 { get; set; } + public global::Runway.CreateRecipesProductSwapResponse? Type655 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse2? Type656 { get; set; } + public global::Runway.CreateRecipesProductSwapResponse2? Type656 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse? Type657 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoResponse? Type657 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type658 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoResponse2? Type658 { get; set; } /// /// /// - public global::Runway.DataItem2? Type659 { get; set; } + public global::Runway.CreateRecipesProductUgcResponse? Type659 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type660 { get; set; } + public global::Runway.CreateRecipesProductUgcResponse2? Type660 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceReady? Type661 { get; set; } + public global::Runway.GetVoicesResponse? Type661 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type662 { get; set; } + public global::System.Collections.Generic.IList? Type662 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminator? Type663 { get; set; } + public global::Runway.DataItem2? Type663 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type664 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type664 { get; set; } /// /// /// - public global::Runway.CreateVoicesResponse? Type665 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceReady? Type665 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse2? Type666 { get; set; } + public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type666 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceProcessing? Type667 { get; set; } + public global::Runway.GetVoicesResponseDataItemDiscriminator? Type667 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceReady? Type668 { get; set; } + public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type668 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceFailed? Type669 { get; set; } + public global::Runway.CreateVoicesResponse? Type669 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminator? Type670 { get; set; } + public global::Runway.GetVoicesResponse2? Type670 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminatorStatus? Type671 { get; set; } + public global::Runway.GetVoicesResponseVoiceProcessing? Type671 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponse? Type672 { get; set; } + public global::Runway.GetVoicesResponseVoiceReady? Type672 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceProcessing? Type673 { get; set; } + public global::Runway.GetVoicesResponseVoiceFailed? Type673 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceReady? Type674 { get; set; } + public global::Runway.GetVoicesResponseDiscriminator? Type674 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceFailed? Type675 { get; set; } + public global::Runway.GetVoicesResponseDiscriminatorStatus? Type675 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminator? Type676 { get; set; } + public global::Runway.PatchVoicesResponse? Type676 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type677 { get; set; } + public global::Runway.PatchVoicesResponseVoiceProcessing? Type677 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewResponse? Type678 { get; set; } + public global::Runway.PatchVoicesResponseVoiceReady? Type678 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse? Type679 { get; set; } + public global::Runway.PatchVoicesResponseVoiceFailed? Type679 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse2? Type680 { get; set; } + public global::Runway.PatchVoicesResponseDiscriminator? Type680 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse? Type681 { get; set; } + public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type681 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseGraph? Type682 { get; set; } + public global::Runway.CreateVoicesPreviewResponse? Type682 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse2? Type683 { get; set; } + public global::Runway.CreateWorkflowsResponse? Type683 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse3? Type684 { get; set; } + public global::Runway.CreateWorkflowsResponse2? Type684 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type685 { get; set; } + public global::Runway.GetWorkflowsResponse? Type685 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItem? Type686 { get; set; } + public global::Runway.GetWorkflowsResponseGraph? Type686 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type687 { get; set; } + public global::Runway.GetWorkflowsResponse2? Type687 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItemVersion? Type688 { get; set; } + public global::Runway.GetWorkflowsResponse3? Type688 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type690 { get; set; } + public global::Runway.GetWorkflowsResponseDataItem? Type690 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type692 { get; set; } + public global::Runway.GetWorkflowsResponseDataItemVersion? Type692 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type693 { get; set; } + public global::Runway.GetWorkflowInvocationsResponse? Type693 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type694 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type694 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type695 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type695 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type696 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type696 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type697 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type697 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type698 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type698 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type699 { get; set; } + public global::System.Collections.Generic.Dictionary? Type699 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type700 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type700 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type701 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type701 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type702 { get; set; } + public global::System.Collections.Generic.Dictionary? Type702 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type703 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type703 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type704 { get; set; } + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type704 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse2? Type705 { get; set; } + public global::System.Collections.Generic.Dictionary? Type705 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type706 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type707 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type708 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponse2? Type709 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponse? Type710 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesAdLocalizationResponse2? Type711 { get; set; } /// /// diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.Json.g.cs new file mode 100644 index 0000000..9e4da43 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationRequest + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationRequest), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationRequest? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationRequest; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.g.cs new file mode 100644 index 0000000..5bb2553 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequest.g.cs @@ -0,0 +1,73 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationRequest + { + /// + /// Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesAdLocalizationRequestVersion Version { get; set; } + + /// + /// Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceImage")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesAdLocalizationRequestReferenceImage ReferenceImage { get; set; } + + /// + /// Target language for the localized ad. Use ISO-style codes (e.g. "ja" for Japanese, "es" for Spanish). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("targetLanguage")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestTargetLanguageJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage TargetLanguage { 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. + /// + /// + /// Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + /// + /// + /// Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs. + /// + /// + /// Target language for the localized ad. Use ISO-style codes (e.g. "ja" for Japanese, "es" for Spanish). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationRequest( + global::Runway.CreateRecipesAdLocalizationRequestVersion version, + global::Runway.CreateRecipesAdLocalizationRequestReferenceImage referenceImage, + global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage targetLanguage) + { + this.Version = version; + this.ReferenceImage = referenceImage ?? throw new global::System.ArgumentNullException(nameof(referenceImage)); + this.TargetLanguage = targetLanguage; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.Json.g.cs new file mode 100644 index 0000000..cb74dfd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationRequestReferenceImage + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationRequestReferenceImage), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationRequestReferenceImage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationRequestReferenceImage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationRequestReferenceImage), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationRequestReferenceImage; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.g.cs new file mode 100644 index 0000000..a74ee53 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestReferenceImage.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs. + /// + public sealed partial class CreateRecipesAdLocalizationRequestReferenceImage + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + ///
+ /// https://example.com/image.jpg + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { 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 HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.
+ /// Example: https://example.com/image.jpg + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationRequestReferenceImage( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationRequestReferenceImage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs new file mode 100644 index 0000000..563d535 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestTargetLanguage.g.cs @@ -0,0 +1,171 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Target language for the localized ad. Use ISO-style codes (e.g. "ja" for Japanese, "es" for Spanish). + /// + public enum CreateRecipesAdLocalizationRequestTargetLanguage + { + /// + /// + /// + Ar, + /// + /// + /// + De, + /// + /// + /// + El, + /// + /// + /// + En, + /// + /// + /// + Es, + /// + /// + /// + Fr, + /// + /// + /// + Hi, + /// + /// + /// + Id, + /// + /// + /// + It, + /// + /// + /// + Ja, + /// + /// + /// + Ko, + /// + /// + /// + Nl, + /// + /// + /// + Pl, + /// + /// + /// + Pt, + /// + /// + /// + Ru, + /// + /// + /// + Sv, + /// + /// + /// + Th, + /// + /// + /// + Tr, + /// + /// + /// + Uk, + /// + /// + /// + Vi, + /// + /// + /// + Zh, + /// + /// + /// + ZhHant, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRecipesAdLocalizationRequestTargetLanguageExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRecipesAdLocalizationRequestTargetLanguage value) + { + return value switch + { + CreateRecipesAdLocalizationRequestTargetLanguage.Ar => "ar", + CreateRecipesAdLocalizationRequestTargetLanguage.De => "de", + CreateRecipesAdLocalizationRequestTargetLanguage.El => "el", + CreateRecipesAdLocalizationRequestTargetLanguage.En => "en", + CreateRecipesAdLocalizationRequestTargetLanguage.Es => "es", + CreateRecipesAdLocalizationRequestTargetLanguage.Fr => "fr", + CreateRecipesAdLocalizationRequestTargetLanguage.Hi => "hi", + CreateRecipesAdLocalizationRequestTargetLanguage.Id => "id", + CreateRecipesAdLocalizationRequestTargetLanguage.It => "it", + CreateRecipesAdLocalizationRequestTargetLanguage.Ja => "ja", + CreateRecipesAdLocalizationRequestTargetLanguage.Ko => "ko", + CreateRecipesAdLocalizationRequestTargetLanguage.Nl => "nl", + CreateRecipesAdLocalizationRequestTargetLanguage.Pl => "pl", + CreateRecipesAdLocalizationRequestTargetLanguage.Pt => "pt", + CreateRecipesAdLocalizationRequestTargetLanguage.Ru => "ru", + CreateRecipesAdLocalizationRequestTargetLanguage.Sv => "sv", + CreateRecipesAdLocalizationRequestTargetLanguage.Th => "th", + CreateRecipesAdLocalizationRequestTargetLanguage.Tr => "tr", + CreateRecipesAdLocalizationRequestTargetLanguage.Uk => "uk", + CreateRecipesAdLocalizationRequestTargetLanguage.Vi => "vi", + CreateRecipesAdLocalizationRequestTargetLanguage.Zh => "zh", + CreateRecipesAdLocalizationRequestTargetLanguage.ZhHant => "zh-Hant", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRecipesAdLocalizationRequestTargetLanguage? ToEnum(string value) + { + return value switch + { + "ar" => CreateRecipesAdLocalizationRequestTargetLanguage.Ar, + "de" => CreateRecipesAdLocalizationRequestTargetLanguage.De, + "el" => CreateRecipesAdLocalizationRequestTargetLanguage.El, + "en" => CreateRecipesAdLocalizationRequestTargetLanguage.En, + "es" => CreateRecipesAdLocalizationRequestTargetLanguage.Es, + "fr" => CreateRecipesAdLocalizationRequestTargetLanguage.Fr, + "hi" => CreateRecipesAdLocalizationRequestTargetLanguage.Hi, + "id" => CreateRecipesAdLocalizationRequestTargetLanguage.Id, + "it" => CreateRecipesAdLocalizationRequestTargetLanguage.It, + "ja" => CreateRecipesAdLocalizationRequestTargetLanguage.Ja, + "ko" => CreateRecipesAdLocalizationRequestTargetLanguage.Ko, + "nl" => CreateRecipesAdLocalizationRequestTargetLanguage.Nl, + "pl" => CreateRecipesAdLocalizationRequestTargetLanguage.Pl, + "pt" => CreateRecipesAdLocalizationRequestTargetLanguage.Pt, + "ru" => CreateRecipesAdLocalizationRequestTargetLanguage.Ru, + "sv" => CreateRecipesAdLocalizationRequestTargetLanguage.Sv, + "th" => CreateRecipesAdLocalizationRequestTargetLanguage.Th, + "tr" => CreateRecipesAdLocalizationRequestTargetLanguage.Tr, + "uk" => CreateRecipesAdLocalizationRequestTargetLanguage.Uk, + "vi" => CreateRecipesAdLocalizationRequestTargetLanguage.Vi, + "zh" => CreateRecipesAdLocalizationRequestTargetLanguage.Zh, + "zh-Hant" => CreateRecipesAdLocalizationRequestTargetLanguage.ZhHant, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestVersion.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestVersion.g.cs new file mode 100644 index 0000000..ff8ba4a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationRequestVersion.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + /// + public enum CreateRecipesAdLocalizationRequestVersion + { + /// + /// + /// + x202606, + /// + /// + /// + UnsafeLatest, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRecipesAdLocalizationRequestVersionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRecipesAdLocalizationRequestVersion value) + { + return value switch + { + CreateRecipesAdLocalizationRequestVersion.x202606 => "2026-06", + CreateRecipesAdLocalizationRequestVersion.UnsafeLatest => "unsafe-latest", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRecipesAdLocalizationRequestVersion? ToEnum(string value) + { + return value switch + { + "2026-06" => CreateRecipesAdLocalizationRequestVersion.x202606, + "unsafe-latest" => CreateRecipesAdLocalizationRequestVersion.UnsafeLatest, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.Json.g.cs new file mode 100644 index 0000000..c63acce --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponse + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponse), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponse? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponse; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs new file mode 100644 index 0000000..96fcce9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationResponse + { + /// + /// The ID of the task that was created. Use this to retrieve the task later. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid 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 the task that was created. Use this to retrieve the task later. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationResponse( + global::System.Guid id) + { + this.Id = id; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.Json.g.cs new file mode 100644 index 0000000..b46b789 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRecipesAdLocalizationResponse2 + { + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRecipesAdLocalizationResponse2), + jsonSerializerContext) as global::Runway.CreateRecipesAdLocalizationResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRecipesAdLocalizationResponse2? FromJson( + string json) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationResponse2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Runway.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::Runway.CreateRecipesAdLocalizationResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRecipesAdLocalizationResponse2; + } + + /// + /// 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::Runway.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::Runway.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs new file mode 100644 index 0000000..0b7a605 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRecipesAdLocalizationResponse2.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRecipesAdLocalizationResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { 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. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRecipesAdLocalizationResponse2( + string error) + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRecipesAdLocalizationResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs new file mode 100644 index 0000000..654ca06 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.RecipesClient.CreateRecipesAdLocalization.g.cs @@ -0,0 +1,552 @@ + +#nullable enable + +namespace Runway +{ + public partial class RecipesClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_CreateRecipesAdLocalizationSecurityRequirement0 = + new global::Runway.EndPointSecurityRequirement + { + Authorizations = new global::Runway.EndPointAuthorizationRequirement[] + { new global::Runway.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "ApiKeyAuth", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::Runway.EndPointSecurityRequirement[] s_CreateRecipesAdLocalizationSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_CreateRecipesAdLocalizationSecurityRequirement0, + }; + partial void PrepareCreateRecipesAdLocalizationArguments( + global::System.Net.Http.HttpClient httpClient, + ref string xRunwayVersion, + global::Runway.CreateRecipesAdLocalizationRequest request); + partial void PrepareCreateRecipesAdLocalizationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string xRunwayVersion, + global::Runway.CreateRecipesAdLocalizationRequest request); + partial void ProcessCreateRecipesAdLocalizationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateRecipesAdLocalizationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// // npm install --save @runwayml/sdk
+ /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const task = await client.recipes.adLocalization({
+ /// version: '2026-06',
+ /// referenceImage: { uri: 'https://example.com/source-ad.jpg' },
+ /// targetLanguage: 'ja',
+ /// });
+ /// console.log(task); + ///
+ public async global::System.Threading.Tasks.Task CreateRecipesAdLocalizationAsync( + + global::Runway.CreateRecipesAdLocalizationRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateRecipesAdLocalizationAsResponseAsync( + + request: request, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + /// + /// // npm install --save @runwayml/sdk
+ /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const task = await client.recipes.adLocalization({
+ /// version: '2026-06',
+ /// referenceImage: { uri: 'https://example.com/source-ad.jpg' },
+ /// targetLanguage: 'ja',
+ /// });
+ /// console.log(task); + ///
+ public async global::System.Threading.Tasks.Task> CreateRecipesAdLocalizationAsResponseAsync( + + global::Runway.CreateRecipesAdLocalizationRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateRecipesAdLocalizationArguments( + httpClient: HttpClient, + xRunwayVersion: ref xRunwayVersion, + request: request); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateRecipesAdLocalizationSecurityRequirements, + operationName: "CreateRecipesAdLocalizationAsync"); + + using var __timeoutCancellationTokenSource = global::Runway.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Runway.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Runway.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Runway.PathBuilder( + path: "/v1/recipes/ad_localization", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Runway.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + + __httpRequest.Headers.TryAddWithoutValidation("X-Runway-Version", xRunwayVersion.ToString()); + + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::Runway.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateRecipesAdLocalizationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + xRunwayVersion: xRunwayVersion!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Runway.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRecipesAdLocalization", + methodName: "CreateRecipesAdLocalizationAsync", + pathTemplate: "\"/v1/recipes/ad_localization\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Runway.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRecipesAdLocalization", + methodName: "CreateRecipesAdLocalizationAsync", + pathTemplate: "\"/v1/recipes/ad_localization\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Runway.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Runway.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Runway.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRecipesAdLocalization", + methodName: "CreateRecipesAdLocalizationAsync", + pathTemplate: "\"/v1/recipes/ad_localization\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Runway.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateRecipesAdLocalizationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRecipesAdLocalization", + methodName: "CreateRecipesAdLocalizationAsync", + pathTemplate: "\"/v1/recipes/ad_localization\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRecipesAdLocalization", + methodName: "CreateRecipesAdLocalizationAsync", + pathTemplate: "\"/v1/recipes/ad_localization\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // You have exceeded the rate limit for this endpoint. + if ((int)__response.StatusCode == 429) + { + string? __content_429 = null; + global::System.Exception? __exception_429 = null; + global::Runway.CreateRecipesAdLocalizationResponse2? __value_429 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_429 = global::Runway.CreateRecipesAdLocalizationResponse2.FromJson(__content_429, JsonSerializerContext); + } + else + { + __content_429 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_429 = global::Runway.CreateRecipesAdLocalizationResponse2.FromJson(__content_429, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_429 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_429 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_429, + responseBody: __content_429, + responseObject: __value_429, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateRecipesAdLocalizationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.CreateRecipesAdLocalizationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Runway.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Runway.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Runway.CreateRecipesAdLocalizationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Runway.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Runway.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Localize an ad image
+ /// Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Workflow version. Use a dated version (e.g. "2026-06") to pin behavior, or "unsafe-latest" to track the newest stable version (may break without notice). + /// + /// + /// Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs. + /// + /// + /// Target language for the localized ad. Use ISO-style codes (e.g. "ja" for Japanese, "es" for Spanish). + /// + /// 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 CreateRecipesAdLocalizationAsync( + global::Runway.CreateRecipesAdLocalizationRequestVersion version, + global::Runway.CreateRecipesAdLocalizationRequestReferenceImage referenceImage, + global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage targetLanguage, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Runway.CreateRecipesAdLocalizationRequest + { + Version = version, + ReferenceImage = referenceImage, + TargetLanguage = targetLanguage, + }; + + return await CreateRecipesAdLocalizationAsync( + xRunwayVersion: xRunwayVersion, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/openapi.json b/src/libs/Runway/openapi.json index 2980da6..0f40a0b 100644 --- a/src/libs/Runway/openapi.json +++ b/src/libs/Runway/openapi.json @@ -14683,6 +14683,146 @@ } } } + }, + "/v1/recipes/ad_localization": { + "post": { + "tags": ["Recipes"], + "summary": "Localize an ad image", + "description": "Localize an existing ad image for a target language, preserving visual creative while adapting on-screen messaging.", + "x-codeSamples": [ + { + "lang": "TypeScript", + "label": "Node SDK", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.adLocalization({\n version: '2026-06',\n referenceImage: { uri: 'https://example.com/source-ad.jpg' },\n targetLanguage: 'ja',\n});\n\nconsole.log(task);" + }, + { + "lang": "Python", + "label": "Python SDK", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.ad_localization(\n version='2026-06',\n reference_image={'uri': 'https://example.com/source-ad.jpg'},\n target_language='ja',\n)\n\nprint(task)" + } + ], + "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "version": { + "description": "Workflow version. Use a dated version (e.g. \"2026-06\") to pin behavior, or \"unsafe-latest\" to track the newest stable version (may break without notice).", + "type": "string", + "enum": ["2026-06", "unsafe-latest"] + }, + "referenceImage": { + "description": "Reference ad image to localize. See [our docs](/assets/inputs#images) on image inputs.", + "type": "object", + "properties": { + "uri": { + "description": "A HTTPS URL, Runway or data URI containing an encoded image. See [our docs](/assets/inputs#images) on image inputs for more information.", + "example": "https://example.com/image.jpg", + "anyOf": [ + { + "description": "A HTTPS URL.", + "example": "https://example.com/file", + "type": "string", + "minLength": 13, + "maxLength": 2048, + "pattern": "^https:\\/\\/.*" + }, + { + "description": "A Runway upload URI. See https://docs.dev.runwayml.com/assets/uploads for more information.", + "example": "runway://", + "type": "string", + "minLength": 13, + "maxLength": 5000, + "pattern": "^runway:\\/\\/.*" + }, + { + "description": "A data URI containing encoded media.", + "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", + "type": "string", + "minLength": 13, + "maxLength": 5242880, + "pattern": "^data:image\\/.*" + } + ] + } + }, + "required": ["uri"], + "additionalProperties": false + }, + "targetLanguage": { + "description": "Target language for the localized ad. Use ISO-style codes (e.g. \"ja\" for Japanese, \"es\" for Spanish).", + "type": "string", + "enum": [ + "ar", + "zh", + "zh-Hant", + "nl", + "en", + "fr", + "de", + "hi", + "id", + "it", + "ja", + "ko", + "pl", + "pt", + "ru", + "es", + "sv", + "th", + "tr", + "uk", + "vi", + "el" + ] + } + }, + "required": ["version", "referenceImage", "targetLanguage"], + "additionalProperties": false + } + } + } + }, + "responses": { + "200": { + "description": "The task that was created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + } + }, + "required": ["id"], + "additionalProperties": false + } + } + } + }, + "429": { + "description": "You have exceeded the rate limit for this endpoint.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { "error": { "type": "string" } }, + "required": ["error"], + "additionalProperties": false + } + } + } + } + } + } } }, "components": {