diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ApiCommand.g.cs index 1a315a7..36c4d7b 100644 --- a/src/cli/Runway.Cli/GeneratedApi/Commands/ApiCommand.g.cs +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ApiCommand.g.cs @@ -16,7 +16,9 @@ public static Command Create() command.Options.Add(CliOptions.OutputDirectory); command.Subcommands.Add(AvatarVideosApiGroupCommand.Create()); command.Subcommands.Add(AvatarsApiGroupCommand.Create()); + command.Subcommands.Add(GenerateApiGroupCommand.Create()); command.Subcommands.Add(KnowledgeApiGroupCommand.Create()); + command.Subcommands.Add(ModelRouterApiGroupCommand.Create()); command.Subcommands.Add(OrganizationApiGroupCommand.Create()); command.Subcommands.Add(RealtimeSessionsApiGroupCommand.Create()); command.Subcommands.Add(RecipesApiGroupCommand.Create()); diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateApiGroupCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateApiGroupCommand.g.cs new file mode 100644 index 0000000..13acf05 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateApiGroupCommand.g.cs @@ -0,0 +1,15 @@ +#nullable enable + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static class GenerateApiGroupCommand +{ + public static Command Create() + { + var command = new Command(@"generate", @"Generate endpoint commands."); + command.Subcommands.Add(GenerateCreateGenerateVideoCommandApiCommand.Create()); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs new file mode 100644 index 0000000..191b145 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/GenerateCreateGenerateVideoCommandApiCommand.g.cs @@ -0,0 +1,128 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class GenerateCreateGenerateVideoCommandApiCommand +{ + 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 ConfigId { get; } = new( + name: @"--config-id") + { + Description = @"The slug of a saved Model Router config to route this request with.", + Required = true, + }; + + private static Option DryRun { get; } = CliRuntime.CreateNullableBoolOption( + name: @"--dry-run", + description: @"When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced."); + + private static Option InputOption { get; } = new( + name: @"--input") + { + Description = @"Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it.", + Required = true, + }; + private static Option RequestInput { get; } = new(@"--request-input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Runway.CreateGenerateVideoResponse 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.CreateGenerateVideoResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"create-generate-video", @"Routed video generation +Start a video generation task using a saved Model Router config instead of naming a model."); + command.Options.Add(XRunwayVersion); + command.Options.Add(ConfigId); + command.Options.Add(DryRun); + command.Options.Add(InputOption); + command.Options.Add(RequestInput); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(RequestInput) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --request-input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + RequestInput, + RequestJson, + RequestFile, + global::Runway.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + var configId = parseResult.GetRequiredValue(ConfigId); + var dryRun = CliRuntime.WasSpecified(parseResult, DryRun) ? parseResult.GetValue(DryRun) : (__requestBase is { } __DryRunBaseValue ? __DryRunBaseValue.DryRun : default); + var input = parseResult.GetRequiredValue(InputOption); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.Generate.CreateGenerateVideoAsync( + xRunwayVersion: xRunwayVersion, + configId: configId, + dryRun: dryRun, + input: input, + 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/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs new file mode 100644 index 0000000..e648b80 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterApiGroupCommand.g.cs @@ -0,0 +1,19 @@ +#nullable enable + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static class ModelRouterApiGroupCommand +{ + public static Command Create() + { + var command = new Command(@"model-router", @"Model Router endpoint commands."); + command.Subcommands.Add(ModelRouterCreateRoutersCommandApiCommand.Create()); + command.Subcommands.Add(ModelRouterDeleteRoutersByIdCommandApiCommand.Create()); + command.Subcommands.Add(ModelRouterEditRoutersByIdCommandApiCommand.Create()); + command.Subcommands.Add(ModelRouterGetRoutersCommandApiCommand.Create()); + command.Subcommands.Add(ModelRouterGetRoutersByIdCommandApiCommand.Create()); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateRoutersCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateRoutersCommandApiCommand.g.cs new file mode 100644 index 0000000..bc6f72b --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterCreateRoutersCommandApiCommand.g.cs @@ -0,0 +1,137 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterCreateRoutersCommandApiCommand +{ + private static Argument Slug { get; } = new( + name: @"slug") + { + Description = @"Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + }; + + 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 NameOption { get; } = new( + name: @"--name") + { + Description = @"Optional human-readable display name for this router. Defaults to the slug when omitted.", + }; + + private static Option DescriptionOption { get; } = new( + name: @"--description") + { + Description = @"An optional Model Router description.", + }; + + private static Option Settings { get; } = new( + name: @"--settings") + { + Description = @"Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router.", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Runway.CreateRoutersResponse 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.CreateRoutersResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"create-routers", @"Create Model Router +Create a Model Router configuration."); + command.Arguments.Add(Slug); + command.Options.Add(XRunwayVersion); + command.Options.Add(NameOption); + command.Options.Add(DescriptionOption); + command.Options.Add(Settings); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::Runway.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var slug = parseResult.GetRequiredValue(Slug); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); + var settings = CliRuntime.WasSpecified(parseResult, Settings) ? parseResult.GetValue(Settings) : (__requestBase is { } __SettingsBaseValue ? __SettingsBaseValue.Settings : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.ModelRouter.CreateRoutersAsync( + slug: slug, + xRunwayVersion: xRunwayVersion, + name: name, + description: description, + settings: settings, + 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/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterDeleteRoutersByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterDeleteRoutersByIdCommandApiCommand.g.cs new file mode 100644 index 0000000..f96a8e8 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterDeleteRoutersByIdCommandApiCommand.g.cs @@ -0,0 +1,48 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterDeleteRoutersByIdCommandApiCommand +{ + private static Argument Id { get; } = new( + name: @"id") + { + Description = @"The Model Router's primary key ID (UUID).", + }; + + 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", + }; + + public static Command Create() + { + var command = new Command(@"delete-routers-by-id", @"Delete Model Router +Delete a Model Router configuration. Deleted Model Routers cannot be used for generation."); + command.Arguments.Add(Id); + command.Options.Add(XRunwayVersion); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var id = parseResult.GetRequiredValue(Id); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + await client.ModelRouter.DeleteRoutersByIdAsync( + id: id, + xRunwayVersion: xRunwayVersion, + cancellationToken: cancellationToken).ConfigureAwait(false); + + await CliRuntime.WriteSuccessAsync(parseResult, cancellationToken).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false)); + return command; + } +} \ No newline at end of file diff --git a/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterEditRoutersByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterEditRoutersByIdCommandApiCommand.g.cs new file mode 100644 index 0000000..0f28dde --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterEditRoutersByIdCommandApiCommand.g.cs @@ -0,0 +1,137 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterEditRoutersByIdCommandApiCommand +{ + private static Argument Id { get; } = new( + name: @"id") + { + Description = @"The Model Router's primary key ID (UUID).", + }; + + 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 NameOption { get; } = new( + name: @"--name") + { + Description = @"Display name. The slug is immutable and cannot be changed after creation.", + }; + + private static Option DescriptionOption { get; } = new( + name: @"--description") + { + Description = @"", + }; + + private static Option Settings { get; } = new( + name: @"--settings") + { + Description = @"Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling).", + }; + private static Option Input { get; } = new(@"--input") + { + Description = "Load request JSON from a file path, '-' for stdin, or an inline JSON object/array string.", + }; + + private static Option RequestJson { get; } = new(@"--request-json") + { + Description = "Request body as JSON.", + Hidden = true, + }; + + private static Option RequestFile { get; } = new(@"--request-file") + { + Description = "Path to a JSON request file, or '-' for stdin.", + Hidden = true, + }; + + private static string FormatResponse(ParseResult parseResult, global::Runway.PatchRoutersResponse 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.PatchRoutersResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"edit-routers-by-id", @"Update Model Router +Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values."); + command.Arguments.Add(Id); + command.Options.Add(XRunwayVersion); + command.Options.Add(NameOption); + command.Options.Add(DescriptionOption); + command.Options.Add(Settings); + command.Options.Add(Input); + command.Options.Add(RequestJson); + command.Options.Add(RequestFile); + command.Validators.Add(result => + { + var hasInput = result.GetResult(Input) is not null; + var hasRequestJson = result.GetResult(RequestJson) is not null; + var hasRequestFile = result.GetResult(RequestFile) is not null; + var specifiedCount = (hasInput ? 1 : 0) + (hasRequestJson ? 1 : 0) + (hasRequestFile ? 1 : 0); + if (specifiedCount > 1) + { + result.AddError(@"Specify at most one of --input, --request-json, or --request-file."); + } + }); + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var __requestBase = await CliRuntime.ReadRequestOrDefaultAsync( + parseResult, + Input, + RequestJson, + RequestFile, + global::Runway.SourceGenerationContext.Default, + cancellationToken).ConfigureAwait(false); + var id = parseResult.GetRequiredValue(Id); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + var name = CliRuntime.WasSpecified(parseResult, NameOption) ? parseResult.GetValue(NameOption) : (__requestBase is { } __NameBaseValue ? __NameBaseValue.Name : default); + var description = CliRuntime.WasSpecified(parseResult, DescriptionOption) ? parseResult.GetValue(DescriptionOption) : (__requestBase is { } __DescriptionBaseValue ? __DescriptionBaseValue.Description : default); + var settings = CliRuntime.WasSpecified(parseResult, Settings) ? parseResult.GetValue(Settings) : (__requestBase is { } __SettingsBaseValue ? __SettingsBaseValue.Settings : default); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.ModelRouter.EditRoutersByIdAsync( + id: id, + xRunwayVersion: xRunwayVersion, + name: name, + description: description, + settings: settings, + 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/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdCommandApiCommand.g.cs new file mode 100644 index 0000000..7bb70b5 --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersByIdCommandApiCommand.g.cs @@ -0,0 +1,74 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterGetRoutersByIdCommandApiCommand +{ + private static Argument Id { get; } = new( + name: @"id") + { + Description = @"The Model Router's primary key ID (UUID).", + }; + + 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 string FormatResponse(ParseResult parseResult, global::Runway.GetRoutersResponse2 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.GetRoutersResponse2 value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-routers-by-id", @"Retrieve Model Router +Retrieve a Model Router configuration by ID."); + command.Arguments.Add(Id); + command.Options.Add(XRunwayVersion); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var id = parseResult.GetRequiredValue(Id); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.ModelRouter.GetRoutersByIdAsync( + id: id, + xRunwayVersion: xRunwayVersion, + 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/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersCommandApiCommand.g.cs b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersCommandApiCommand.g.cs new file mode 100644 index 0000000..df06d9c --- /dev/null +++ b/src/cli/Runway.Cli/GeneratedApi/Commands/ModelRouterGetRoutersCommandApiCommand.g.cs @@ -0,0 +1,92 @@ +#nullable enable +#pragma warning disable CS0618 + +using System.CommandLine; + +namespace Runway.Cli.GeneratedApi.Commands; + +internal static partial class ModelRouterGetRoutersCommandApiCommand +{ + private static Option Cursor { get; } = new( + name: @"--cursor") + { + Description = @"Cursor from a previous response for fetching the next page of results.", + }; + + private static Option Limit { get; } = new( + name: @"--limit") + { + Description = @"The maximum number of items to return per page.", + Required = true, + }; + + 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 string FormatResponse(ParseResult parseResult, global::Runway.GetRoutersResponse 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.GetRoutersResponse value, ref string? text); + static partial void CustomizeResponseFormatHints(Dictionary hints); + + + public static Command Create() + { + var command = new Command(@"get-routers", @"List Model Routers +List Model Router configurations for the authenticated organization with cursor-based pagination."); + command.Options.Add(Cursor); + command.Options.Add(Limit); + command.Options.Add(XRunwayVersion); + + + command.SetAction(async (ParseResult parseResult, CancellationToken cancellationToken) => + await CliRuntime.RunAsync(async () => + { + var cursor = parseResult.GetValue(Cursor); + var limit = parseResult.GetRequiredValue(Limit); + var xRunwayVersion = parseResult.GetRequiredValue(XRunwayVersion); + using var client = await CliRuntime.CreateClientAsync(parseResult, cancellationToken).ConfigureAwait(false); + + + var response = await client.ModelRouter.GetRoutersAsync( + cursor: cursor, + limit: limit, + xRunwayVersion: xRunwayVersion, + cancellationToken: cancellationToken).ConfigureAwait(false); + + + if (!await CliRuntime.TryWriteOutputDirectoryAsync( + parseResult, + response, + global::Runway.SourceGenerationContext.Default, + @"Data", + 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.GenerateClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs new file mode 100644 index 0000000..630d79d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.GenerateClient.CreateGenerateVideo.g.cs @@ -0,0 +1,567 @@ + +#nullable enable + +namespace Runway +{ + public partial class GenerateClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_CreateGenerateVideoSecurityRequirement0 = + 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_CreateGenerateVideoSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_CreateGenerateVideoSecurityRequirement0, + }; + partial void PrepareCreateGenerateVideoArguments( + global::System.Net.Http.HttpClient httpClient, + ref string xRunwayVersion, + global::Runway.CreateGenerateVideoRequest request); + partial void PrepareCreateGenerateVideoRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string xRunwayVersion, + global::Runway.CreateGenerateVideoRequest request); + partial void ProcessCreateGenerateVideoResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateGenerateVideoResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// 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 + /// + public async global::System.Threading.Tasks.Task CreateGenerateVideoAsync( + + global::Runway.CreateGenerateVideoRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateGenerateVideoAsResponseAsync( + + request: request, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> CreateGenerateVideoAsResponseAsync( + + global::Runway.CreateGenerateVideoRequest 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); + PrepareCreateGenerateVideoArguments( + httpClient: HttpClient, + xRunwayVersion: ref xRunwayVersion, + request: request); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateGenerateVideoSecurityRequirements, + operationName: "CreateGenerateVideoAsync"); + + 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/generate/video", + 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); + PrepareCreateGenerateVideoRequest( + 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: "createGenerateVideo", + methodName: "CreateGenerateVideoAsync", + pathTemplate: "\"/v1/generate/video\"", + 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: "createGenerateVideo", + methodName: "CreateGenerateVideoAsync", + pathTemplate: "\"/v1/generate/video\"", + 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: "createGenerateVideo", + methodName: "CreateGenerateVideoAsync", + pathTemplate: "\"/v1/generate/video\"", + 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); + ProcessCreateGenerateVideoResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createGenerateVideo", + methodName: "CreateGenerateVideoAsync", + pathTemplate: "\"/v1/generate/video\"", + 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: "createGenerateVideo", + methodName: "CreateGenerateVideoAsync", + pathTemplate: "\"/v1/generate/video\"", + 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); + } + // No model satisfies the config and request together. Returned identically for real and dry-run requests. + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::Runway.CreateGenerateVideoResponse2? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::Runway.CreateGenerateVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::Runway.CreateGenerateVideoResponse2.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseObject: __value_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + // The referenced router config does not exist or is not accessible to this account. + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::Runway.CreateGenerateVideoResponse3? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::Runway.CreateGenerateVideoResponse3.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::Runway.CreateGenerateVideoResponse3.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + + throw global::Runway.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + responseBody: __content_404, + responseObject: __value_404, + 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); + ProcessCreateGenerateVideoResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.CreateGenerateVideoResponse.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.CreateGenerateVideoResponse.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(); + } + } + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// The slug of a saved Model Router config to route this request with. + /// + /// + /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. + /// + /// + /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. + /// + /// 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 CreateGenerateVideoAsync( + string configId, + global::Runway.CreateGenerateVideoRequestInput input, + string xRunwayVersion = "2024-11-06", + bool? dryRun = default, + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Runway.CreateGenerateVideoRequest + { + ConfigId = configId, + DryRun = dryRun, + Input = input, + }; + + return await CreateGenerateVideoAsync( + xRunwayVersion: xRunwayVersion, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.GenerateClient.g.cs b/src/libs/Runway/Generated/Runway.GenerateClient.g.cs new file mode 100644 index 0000000..e9c6e5e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.GenerateClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace Runway +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class GenerateClient : global::Runway.IGenerateClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://api.dev.runwayml.com/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::Runway.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Runway.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the GenerateClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public GenerateClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the GenerateClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public GenerateClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Runway.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the GenerateClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public GenerateClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Runway.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::Runway.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs b/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs new file mode 100644 index 0000000..c1fd2ae --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IGenerateClient.CreateGenerateVideo.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +namespace Runway +{ + public partial interface IGenerateClient + { + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// 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 + /// + global::System.Threading.Tasks.Task CreateGenerateVideoAsync( + + global::Runway.CreateGenerateVideoRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// 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 + /// + global::System.Threading.Tasks.Task> CreateGenerateVideoAsResponseAsync( + + global::Runway.CreateGenerateVideoRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Routed video generation
+ /// Start a video generation task using a saved Model Router config instead of naming a model. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// The slug of a saved Model Router config to route this request with. + /// + /// + /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. + /// + /// + /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. + /// + /// 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 CreateGenerateVideoAsync( + string configId, + global::Runway.CreateGenerateVideoRequestInput input, + string xRunwayVersion = "2024-11-06", + bool? dryRun = default, + 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.IGenerateClient.g.cs b/src/libs/Runway/Generated/Runway.IGenerateClient.g.cs new file mode 100644 index 0000000..261261d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IGenerateClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Runway +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IGenerateClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::Runway.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateRouters.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateRouters.g.cs new file mode 100644 index 0000000..328880a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.CreateRouters.g.cs @@ -0,0 +1,94 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// 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 + /// + /// + /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const router = await client.routers.create({
+ /// slug: 'preview-fast',
+ /// name: 'Preview (fast)',
+ /// settings: {
+ /// optimizeFor: 'cost',
+ /// },
+ /// }); + ///
+ global::System.Threading.Tasks.Task CreateRoutersAsync( + + global::Runway.CreateRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// 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 + /// + /// + /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const router = await client.routers.create({
+ /// slug: 'preview-fast',
+ /// name: 'Preview (fast)',
+ /// settings: {
+ /// optimizeFor: 'cost',
+ /// },
+ /// }); + ///
+ global::System.Threading.Tasks.Task> CreateRoutersAsResponseAsync( + + global::Runway.CreateRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Optional human-readable display name for this router. Defaults to the slug when omitted. + /// + /// + /// An optional Model Router description. + /// + /// + /// Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router. + /// + /// 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 CreateRoutersAsync( + string slug, + string xRunwayVersion = "2024-11-06", + string? name = default, + string? description = default, + global::Runway.CreateRoutersRequestSettings? settings = default, + 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.IModelRouterClient.DeleteRoutersById.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.DeleteRoutersById.g.cs new file mode 100644 index 0000000..6aadae4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.DeleteRoutersById.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// Delete Model Router
+ /// Delete a Model Router configuration. Deleted Model Routers cannot be used for generation. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task DeleteRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete Model Router
+ /// Delete a Model Router configuration. Deleted Model Routers cannot be used for generation. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task DeleteRoutersByIdAsResponseAsync( + global::System.Guid id, + 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.IModelRouterClient.EditRoutersById.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.EditRoutersById.g.cs new file mode 100644 index 0000000..095e0b4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.EditRoutersById.g.cs @@ -0,0 +1,72 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task EditRoutersByIdAsync( + global::System.Guid id, + + global::Runway.PatchRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task> EditRoutersByIdAsResponseAsync( + global::System.Guid id, + + global::Runway.PatchRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// Default Value: 2024-11-06 + /// + /// + /// Display name. The slug is immutable and cannot be changed after creation. + /// + /// + /// + /// Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling). + /// + /// 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 EditRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + string? name = default, + string? description = default, + global::Runway.PatchRoutersRequestSettings? settings = default, + 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.IModelRouterClient.GetRouters.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRouters.g.cs new file mode 100644 index 0000000..8ec67e4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRouters.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// List Model Routers
+ /// List Model Router configurations for the authenticated organization with cursor-based pagination. + ///
+ /// + /// + /// Default Value: 50 + /// + /// + /// 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 routers = await client.routers.list();
+ /// for await (const router of routers) {
+ /// console.log(router);
+ /// } + ///
+ global::System.Threading.Tasks.Task GetRoutersAsync( + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// List Model Routers
+ /// List Model Router configurations for the authenticated organization with cursor-based pagination. + ///
+ /// + /// + /// Default Value: 50 + /// + /// + /// 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 routers = await client.routers.list();
+ /// for await (const router of routers) {
+ /// console.log(router);
+ /// } + ///
+ global::System.Threading.Tasks.Task> GetRoutersAsResponseAsync( + int limit, + string? cursor = default, + 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.IModelRouterClient.GetRoutersById.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersById.g.cs new file mode 100644 index 0000000..a2c6422 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.GetRoutersById.g.cs @@ -0,0 +1,40 @@ +#nullable enable + +namespace Runway +{ + public partial interface IModelRouterClient + { + /// + /// Retrieve Model Router
+ /// Retrieve a Model Router configuration by ID. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task GetRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieve Model Router
+ /// Retrieve a Model Router configuration by ID. + ///
+ /// + /// + /// 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 + /// + global::System.Threading.Tasks.Task> GetRoutersByIdAsResponseAsync( + global::System.Guid id, + 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.IModelRouterClient.g.cs b/src/libs/Runway/Generated/Runway.IModelRouterClient.g.cs new file mode 100644 index 0000000..d88bc71 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.IModelRouterClient.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace Runway +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public partial interface IModelRouterClient : global::System.IDisposable + { + /// + /// The HttpClient instance. + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + /// The base URL for the API. + /// + public System.Uri? BaseUri { get; } + + /// + /// The authorizations to use for the requests. + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + /// Gets or sets a value indicating whether the response content should be read as a string. + /// True by default in debug builds, false otherwise. + /// When false, successful responses are deserialized directly from the response stream for better performance. + /// Error responses are always read as strings regardless of this setting, + /// ensuring is populated. + /// + public bool ReadResponseAsString { get; set; } + /// + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// + public global::Runway.AutoSDKClientOptions Options { get; } + + + /// + /// + /// + global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs b/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs index 7612278..9f383cb 100644 --- a/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs +++ b/src/libs/Runway/Generated/Runway.IRunwayClient.g.cs @@ -55,11 +55,21 @@ public partial interface IRunwayClient : global::System.IDisposable /// public AvatarsClient Avatars { get; } + /// + /// + /// + public GenerateClient Generate { get; } + /// /// /// public KnowledgeClient Knowledge { get; } + /// + /// + /// + public ModelRouterClient ModelRouter { get; } + /// /// /// diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatio.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatio.g.cs new file mode 100644 index 0000000..b09f026 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatio.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputAspectRatio 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.CreateGenerateVideoRequestInputAspectRatioExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputAspectRatio); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputAspectRatio value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoRequestInputAspectRatioExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullable.g.cs new file mode 100644 index 0000000..9ba9300 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputAspectRatio? 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.CreateGenerateVideoRequestInputAspectRatioExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputAspectRatio)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputAspectRatio?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputAspectRatio? 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.CreateGenerateVideoRequestInputAspectRatioExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs new file mode 100644 index 0000000..582d69f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold 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.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullable.g.cs new file mode 100644 index 0000000..f260389 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? 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.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? 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.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRole.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRole.g.cs new file mode 100644 index 0000000..d12ee5a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputReferenceImageRole 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.CreateGenerateVideoRequestInputReferenceImageRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputReferenceImageRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputReferenceImageRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputReferenceImageRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoRequestInputReferenceImageRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullable.g.cs new file mode 100644 index 0000000..fe6848a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputReferenceImageRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputReferenceImageRole? 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.CreateGenerateVideoRequestInputReferenceImageRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputReferenceImageRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputReferenceImageRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputReferenceImageRole? 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.CreateGenerateVideoRequestInputReferenceImageRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs new file mode 100644 index 0000000..c3423b2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole 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.CreateGenerateVideoRequestInputReferenceVideoRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoRequestInputReferenceVideoRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullable.g.cs new file mode 100644 index 0000000..7f28482 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputReferenceVideoRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole? 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.CreateGenerateVideoRequestInputReferenceVideoRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole? 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.CreateGenerateVideoRequestInputReferenceVideoRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolution.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolution.g.cs new file mode 100644 index 0000000..d3a2933 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolution.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputResolutionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputResolution 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.CreateGenerateVideoRequestInputResolutionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputResolution); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputResolution value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoRequestInputResolutionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullable.g.cs new file mode 100644 index 0000000..374e458 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoRequestInputResolutionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoRequestInputResolution? 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.CreateGenerateVideoRequestInputResolutionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoRequestInputResolution)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoRequestInputResolution?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoRequestInputResolution? 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.CreateGenerateVideoRequestInputResolutionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs new file mode 100644 index 0000000..d0e9f74 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponse.g.cs @@ -0,0 +1,72 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace Runway.JsonConverters +{ + /// + public class CreateGenerateVideoResponseJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponse Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? @false = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun.False) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated)}"); + @false = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? @true = default; + if (discriminator?.DryRun == global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun.True) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun)}"); + @true = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::Runway.CreateGenerateVideoResponse( + discriminator?.DryRun, + @false, + + @true + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponse value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsFalse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.False!, typeInfo); + } + else if (value.IsTrue) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.True!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs new file mode 100644 index 0000000..c55fbd3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun 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.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs new file mode 100644 index 0000000..743a07d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? 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.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? 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.CreateGenerateVideoResponseDiscriminatorDryRunExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItem.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItem.g.cs new file mode 100644 index 0000000..e65ccb4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItem.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseEmptiedByItemJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseEmptiedByItem 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.CreateGenerateVideoResponseEmptiedByItemExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseEmptiedByItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseEmptiedByItem); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseEmptiedByItem value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseEmptiedByItemExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullable.g.cs new file mode 100644 index 0000000..72e9555 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseEmptiedByItemNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseEmptiedByItem? 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.CreateGenerateVideoResponseEmptiedByItemExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseEmptiedByItem)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseEmptiedByItem?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseEmptiedByItem? 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.CreateGenerateVideoResponseEmptiedByItemExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilter.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilter.g.cs new file mode 100644 index 0000000..43441b4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilter.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponsePipelineItemFilterJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponsePipelineItemFilter 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.CreateGenerateVideoResponsePipelineItemFilterExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponsePipelineItemFilter)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponsePipelineItemFilter); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponsePipelineItemFilter value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponsePipelineItemFilterExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullable.g.cs new file mode 100644 index 0000000..7c76227 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponsePipelineItemFilter? 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.CreateGenerateVideoResponsePipelineItemFilterExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponsePipelineItemFilter)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponsePipelineItemFilter?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponsePipelineItemFilter? 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.CreateGenerateVideoResponsePipelineItemFilterExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..975d2c0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..d35495a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..3e85357 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..692c9e2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsMode.g.cs new file mode 100644 index 0000000..298bd32 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersRequestSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersRequestSettingsModelsMode 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.CreateRoutersRequestSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersRequestSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersRequestSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersRequestSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRoutersRequestSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..403898b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersRequestSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersRequestSettingsModelsMode? 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.CreateRoutersRequestSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersRequestSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersRequestSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersRequestSettingsModelsMode? 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.CreateRoutersRequestSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..69ddc05 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersRequestSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersRequestSettingsOptimizeFor 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.CreateRoutersRequestSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersRequestSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersRequestSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersRequestSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRoutersRequestSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..5538c70 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersRequestSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersRequestSettingsOptimizeFor? 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.CreateRoutersRequestSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersRequestSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersRequestSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersRequestSettingsOptimizeFor? 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.CreateRoutersRequestSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..e3793ba --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersResponseSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersResponseSettingsModelsMode 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.CreateRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersResponseSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersResponseSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRoutersResponseSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..b3cfc16 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersResponseSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersResponseSettingsModelsMode? 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.CreateRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersResponseSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersResponseSettingsModelsMode? 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.CreateRoutersResponseSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..16c741f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersResponseSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersResponseSettingsOptimizeFor 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.CreateRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersResponseSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersResponseSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.CreateRoutersResponseSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..564f0fe --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class CreateRoutersResponseSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.CreateRoutersResponseSettingsOptimizeFor? 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.CreateRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.CreateRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.CreateRoutersResponseSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.CreateRoutersResponseSettingsOptimizeFor? 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.CreateRoutersResponseSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsMode.g.cs new file mode 100644 index 0000000..55a78a8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseDataItemSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseDataItemSettingsModelsMode 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.GetRoutersResponseDataItemSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseDataItemSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseDataItemSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseDataItemSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersResponseDataItemSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..9c61cd9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseDataItemSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseDataItemSettingsModelsMode? 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.GetRoutersResponseDataItemSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseDataItemSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseDataItemSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseDataItemSettingsModelsMode? 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.GetRoutersResponseDataItemSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..294e693 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseDataItemSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor 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.GetRoutersResponseDataItemSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersResponseDataItemSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..7189b6c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseDataItemSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? 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.GetRoutersResponseDataItemSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? 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.GetRoutersResponseDataItemSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..0752407 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseSettingsModelsMode 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.GetRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersResponseSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..c2cd1d4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseSettingsModelsMode? 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.GetRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseSettingsModelsMode? 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.GetRoutersResponseSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..885b564 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseSettingsOptimizeFor 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.GetRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.GetRoutersResponseSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..e5c4833 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class GetRoutersResponseSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.GetRoutersResponseSettingsOptimizeFor? 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.GetRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.GetRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.GetRoutersResponseSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.GetRoutersResponseSettingsOptimizeFor? 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.GetRoutersResponseSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsMode.g.cs new file mode 100644 index 0000000..e5b83c0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersRequestSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersRequestSettingsModelsMode 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.PatchRoutersRequestSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersRequestSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersRequestSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersRequestSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.PatchRoutersRequestSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..b671941 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersRequestSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersRequestSettingsModelsMode? 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.PatchRoutersRequestSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersRequestSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersRequestSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersRequestSettingsModelsMode? 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.PatchRoutersRequestSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..33953fd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersRequestSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersRequestSettingsOptimizeFor 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.PatchRoutersRequestSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersRequestSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersRequestSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersRequestSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.PatchRoutersRequestSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..984c062 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersRequestSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersRequestSettingsOptimizeFor? 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.PatchRoutersRequestSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersRequestSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersRequestSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersRequestSettingsOptimizeFor? 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.PatchRoutersRequestSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..27165ea --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersResponseSettingsModelsModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersResponseSettingsModelsMode 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.PatchRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersResponseSettingsModelsMode); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersResponseSettingsModelsMode value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.PatchRoutersResponseSettingsModelsModeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullable.g.cs new file mode 100644 index 0000000..b460691 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersResponseSettingsModelsModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersResponseSettingsModelsMode? 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.PatchRoutersResponseSettingsModelsModeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersResponseSettingsModelsMode)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersResponseSettingsModelsMode?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersResponseSettingsModelsMode? 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.PatchRoutersResponseSettingsModelsModeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..88ccd29 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersResponseSettingsOptimizeForJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersResponseSettingsOptimizeFor 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.PatchRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersResponseSettingsOptimizeFor); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersResponseSettingsOptimizeFor value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Runway.PatchRoutersResponseSettingsOptimizeForExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullable.g.cs b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullable.g.cs new file mode 100644 index 0000000..2f36f49 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Runway.JsonConverters +{ + /// + public sealed class PatchRoutersResponseSettingsOptimizeForNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Runway.PatchRoutersResponseSettingsOptimizeFor? 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.PatchRoutersResponseSettingsOptimizeForExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Runway.PatchRoutersResponseSettingsOptimizeFor)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Runway.PatchRoutersResponseSettingsOptimizeFor?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Runway.PatchRoutersResponseSettingsOptimizeFor? 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.PatchRoutersResponseSettingsOptimizeForExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs index 713b38b..c173181 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContext.g.cs @@ -393,6 +393,26 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeNullableJsonConverter), @@ -465,6 +485,22 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelNullableJsonConverter), @@ -669,6 +705,26 @@ namespace Runway typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -677,6 +733,38 @@ namespace Runway typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -793,6 +881,8 @@ namespace Runway typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -823,6 +913,8 @@ namespace Runway typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), @@ -1185,6 +1277,26 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationRequestElevenVoiceIsolation))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationRequestDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationRequestDiscriminatorModel), TypeInfoPropertyName = "CreateVoiceIsolationRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceImageRole), TypeInfoPropertyName = "CreateGenerateVideoRequestInputReferenceImageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceVideo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole), TypeInfoPropertyName = "CreateGenerateVideoRequestInputReferenceVideoRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfCreateGenerateVideoRequestInputKeyframeVariant1CreateGenerateVideoRequestInputKeyframeVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputAspectRatio), TypeInfoPropertyName = "CreateGenerateVideoRequestInputAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputResolution), TypeInfoPropertyName = "CreateGenerateVideoRequestInputResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputContentModeration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold), TypeInfoPropertyName = "CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsRequest))] @@ -1233,6 +1345,18 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcRequestCharacterImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcRequestProductImage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcRequestRatio), TypeInfoPropertyName = "CreateRecipesProductUgcRequestRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsModelsMode), TypeInfoPropertyName = "CreateRoutersRequestSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsOptimizeFor), TypeInfoPropertyName = "CreateRoutersRequestSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsModelsMode), TypeInfoPropertyName = "PatchRoutersRequestSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsOptimizeFor), TypeInfoPropertyName = "PatchRoutersRequestSettingsOptimizeFor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.From), TypeInfoPropertyName = "From2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromAudio))] @@ -1301,38 +1425,6 @@ namespace Runway [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId), TypeInfoPropertyName = "CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType), TypeInfoPropertyName = "CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminatorStatus), TypeInfoPropertyName = "CreateAvatarsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemStatus), TypeInfoPropertyName = "GetAvatarConversationsResponseDataItemStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AvatarVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType), TypeInfoPropertyName = "GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarUsageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarUsageResponseByDayItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2), TypeInfoPropertyName = "GetAvatarConversationsResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AvatarVariant12))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant1TranscriptItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfObjectStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1Tool))] internal sealed partial class SourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1724,6 +1816,26 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeNullableJsonConverter), @@ -1796,6 +1908,22 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelNullableJsonConverter), @@ -2000,6 +2128,26 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -2008,6 +2156,38 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -2124,6 +2304,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -2154,6 +2336,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), @@ -2164,6 +2348,38 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType), TypeInfoPropertyName = "CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminatorStatus), TypeInfoPropertyName = "CreateAvatarsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemStatus), TypeInfoPropertyName = "GetAvatarConversationsResponseDataItemStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AvatarVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType), TypeInfoPropertyName = "GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarUsageResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarUsageResponseByDayItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2), TypeInfoPropertyName = "GetAvatarConversationsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AvatarVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant1TranscriptItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf), TypeInfoPropertyName = "AnyOfObjectStringObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1Tool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1ToolType), TypeInfoPropertyName = "GetAvatarConversationsResponseVariant1ToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AvatarVariant13))] @@ -2307,6 +2523,28 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse), TypeInfoPropertyName = "CreateGenerateVideoResponse2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor), TypeInfoPropertyName = "CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun), TypeInfoPropertyName = "CreateGenerateVideoResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponsePipelineItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponsePipelineItemFilter), TypeInfoPropertyName = "CreateGenerateVideoResponsePipelineItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseEmptiedByItem), TypeInfoPropertyName = "CreateGenerateVideoResponseEmptiedByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetOrganizationResponseTier))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] @@ -2338,6 +2576,32 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItem))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsModelsMode), TypeInfoPropertyName = "GetRoutersResponseDataItemSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor), TypeInfoPropertyName = "GetRoutersResponseDataItemSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsModelsMode), TypeInfoPropertyName = "CreateRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsOptimizeFor), TypeInfoPropertyName = "CreateRoutersResponseSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsModelsMode), TypeInfoPropertyName = "GetRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsOptimizeFor), TypeInfoPropertyName = "GetRoutersResponseSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettings))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsModels))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsModelsMode), TypeInfoPropertyName = "PatchRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsOptimizeFor), TypeInfoPropertyName = "PatchRoutersResponseSettingsOptimizeFor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem2), TypeInfoPropertyName = "DataItem22")] @@ -2521,6 +2785,12 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceDubbingRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateVoiceDubbingRequestDiscriminatorModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationRequest?), TypeInfoPropertyName = "NullableCreateVoiceIsolationRequest2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoiceIsolationRequestDiscriminatorModel?), TypeInfoPropertyName = "NullableCreateVoiceIsolationRequestDiscriminatorModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceImageRole?), TypeInfoPropertyName = "NullableCreateGenerateVideoRequestInputReferenceImageRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole?), TypeInfoPropertyName = "NullableCreateGenerateVideoRequestInputReferenceVideoRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfCreateGenerateVideoRequestInputKeyframeVariant1CreateGenerateVideoRequestInputKeyframeVariant22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputAspectRatio?), TypeInfoPropertyName = "NullableCreateGenerateVideoRequestInputAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputResolution?), TypeInfoPropertyName = "NullableCreateGenerateVideoRequestInputResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold?), TypeInfoPropertyName = "NullableCreateGenerateVideoRequestInputContentModerationPublicFigureThreshold2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateUploadsRequestType?), TypeInfoPropertyName = "NullableCreateUploadsRequestType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesAdLocalizationRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesAdLocalizationRequestVersion2")] @@ -2541,6 +2811,10 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesMultiShotVideoRequestDiscriminatorMode?), TypeInfoPropertyName = "NullableCreateRecipesMultiShotVideoRequestDiscriminatorMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcRequestVersion?), TypeInfoPropertyName = "NullableCreateRecipesProductUgcRequestVersion2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRecipesProductUgcRequestRatio?), TypeInfoPropertyName = "NullableCreateRecipesProductUgcRequestRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsModelsMode?), TypeInfoPropertyName = "NullableCreateRoutersRequestSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersRequestSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateRoutersRequestSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsModelsMode?), TypeInfoPropertyName = "NullablePatchRoutersRequestSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersRequestSettingsOptimizeFor?), TypeInfoPropertyName = "NullablePatchRoutersRequestSettingsOptimizeFor2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.From?), TypeInfoPropertyName = "NullableFrom2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromVoiceFromTextModel?), TypeInfoPropertyName = "NullableCreateVoicesRequestFromVoiceFromTextModel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateVoicesRequestFromDiscriminatorType?), TypeInfoPropertyName = "NullableCreateVoicesRequestFromDiscriminatorType2")] @@ -2574,96 +2848,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableCreateAvatarsResponseDiscriminatorStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemStatus?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDataItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1TranscriptItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfObjectStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1ToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2TranscriptItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2ToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3TranscriptItemRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3ToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse2?), TypeInfoPropertyName = "NullableGetAvatarsResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10?), TypeInfoPropertyName = "NullableVoice102")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice11?), TypeInfoPropertyName = "NullableVoice112")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice12?), TypeInfoPropertyName = "NullableVoice122")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponse?), TypeInfoPropertyName = "NullablePatchAvatarsResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice13?), TypeInfoPropertyName = "NullableVoice132")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice14?), TypeInfoPropertyName = "NullableVoice142")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice15?), TypeInfoPropertyName = "NullableVoice152")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullablePatchAvatarsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateDocumentsResponseType?), TypeInfoPropertyName = "NullableCreateDocumentsResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsResponseDataItemType?), TypeInfoPropertyName = "NullableGetDocumentsResponseDataItemType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsResponseType?), TypeInfoPropertyName = "NullableGetDocumentsResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponse?), TypeInfoPropertyName = "NullableGetRealtimeSessionsResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetRealtimeSessionsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponse?), TypeInfoPropertyName = "NullableGetTasksResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetTasksResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel?), TypeInfoPropertyName = "NullableCreateOrganizationUsageResponseResultUsedCreditModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseModel?), TypeInfoPropertyName = "NullableCreateOrganizationUsageResponseModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem2?), TypeInfoPropertyName = "NullableDataItem22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetVoicesResponseDataItemDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponse2?), TypeInfoPropertyName = "NullableGetVoicesResponse22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetVoicesResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponse?), TypeInfoPropertyName = "NullablePatchVoicesResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullablePatchVoicesResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse?), TypeInfoPropertyName = "NullableGetWorkflowInvocationsResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetWorkflowInvocationsResponseDiscriminatorStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [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::Runway.AnyOf>))] - [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::Runway.AnyOf>))] - [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::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -3055,6 +3239,26 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeJsonConverter), typeof(global::Runway.JsonConverters.CreateUploadsRequestTypeNullableJsonConverter), @@ -3127,6 +3331,22 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelJsonConverter), typeof(global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelNullableJsonConverter), @@ -3331,6 +3551,26 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemJsonConverter), + + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullableJsonConverter), + typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter), typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter), @@ -3339,6 +3579,38 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.CreateOrganizationUsageResponseModelNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullableJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter), + + typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter), + typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter), @@ -3455,6 +3727,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.GetTasksResponseJsonConverter), + typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter), + typeof(global::Runway.JsonConverters.DataItem2JsonConverter), typeof(global::Runway.JsonConverters.GetVoicesResponse2JsonConverter), @@ -3485,6 +3759,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), + typeof(global::Runway.JsonConverters.AnyOfJsonConverter), typeof(global::Runway.JsonConverters.AnyOfJsonConverter), @@ -3495,6 +3771,110 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::Runway.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponse2?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1TranscriptItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf?), TypeInfoPropertyName = "NullableAnyOfObjectStringObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant1ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant1ToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2TranscriptItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant2ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant2ToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3TranscriptItemRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseVariant3ToolType?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseVariant3ToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarConversationsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarConversationsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponse2?), TypeInfoPropertyName = "NullableGetAvatarsResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice10?), TypeInfoPropertyName = "NullableVoice102")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice11?), TypeInfoPropertyName = "NullableVoice112")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice12?), TypeInfoPropertyName = "NullableVoice122")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullableGetAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetAvatarsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponse?), TypeInfoPropertyName = "NullablePatchAvatarsResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice13?), TypeInfoPropertyName = "NullableVoice132")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice14?), TypeInfoPropertyName = "NullableVoice142")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarReadyVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.Voice15?), TypeInfoPropertyName = "NullableVoice152")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType?), TypeInfoPropertyName = "NullablePatchAvatarsResponseAvatarFailedVoiceDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchAvatarsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullablePatchAvatarsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateDocumentsResponseType?), TypeInfoPropertyName = "NullableCreateDocumentsResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsResponseDataItemType?), TypeInfoPropertyName = "NullableGetDocumentsResponseDataItemType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetDocumentsResponseType?), TypeInfoPropertyName = "NullableGetDocumentsResponseType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponse?), TypeInfoPropertyName = "NullableGetRealtimeSessionsResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetRealtimeSessionsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponse?), TypeInfoPropertyName = "NullableGetTasksResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetTasksResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetTasksResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponse?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseDiscriminatorDryRun2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponsePipelineItemFilter?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponsePipelineItemFilter2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateGenerateVideoResponseEmptiedByItem?), TypeInfoPropertyName = "NullableCreateGenerateVideoResponseEmptiedByItem2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel?), TypeInfoPropertyName = "NullableCreateOrganizationUsageResponseResultUsedCreditModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateOrganizationUsageResponseModel?), TypeInfoPropertyName = "NullableCreateOrganizationUsageResponseModel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsModelsMode?), TypeInfoPropertyName = "NullableGetRoutersResponseDataItemSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor?), TypeInfoPropertyName = "NullableGetRoutersResponseDataItemSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsModelsMode?), TypeInfoPropertyName = "NullableCreateRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.CreateRoutersResponseSettingsOptimizeFor?), TypeInfoPropertyName = "NullableCreateRoutersResponseSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsModelsMode?), TypeInfoPropertyName = "NullableGetRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetRoutersResponseSettingsOptimizeFor?), TypeInfoPropertyName = "NullableGetRoutersResponseSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsModelsMode?), TypeInfoPropertyName = "NullablePatchRoutersResponseSettingsModelsMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchRoutersResponseSettingsOptimizeFor?), TypeInfoPropertyName = "NullablePatchRoutersResponseSettingsOptimizeFor2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.DataItem2?), TypeInfoPropertyName = "NullableDataItem22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDataItemDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetVoicesResponseDataItemDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponse2?), TypeInfoPropertyName = "NullableGetVoicesResponse22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetVoicesResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetVoicesResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponse?), TypeInfoPropertyName = "NullablePatchVoicesResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.PatchVoicesResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullablePatchVoicesResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponse?), TypeInfoPropertyName = "NullableGetWorkflowInvocationsResponse2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus?), TypeInfoPropertyName = "NullableGetWorkflowInvocationsResponseDiscriminatorStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [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::Runway.AnyOf>))] + [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::Runway.AnyOf>))] + [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::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Runway.AnyOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -3513,6 +3893,10 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -3536,9 +3920,12 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -3777,6 +4164,16 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceDubbingRequestDiscriminatorModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoiceIsolationRequestDiscriminatorModelNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateUploadsRequestTypeJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateUploadsRequestTypeNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesAdLocalizationRequestVersionJsonConverter()); @@ -3813,6 +4210,14 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesProductUgcRequestVersionNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateRecipesProductUgcRequestRatioNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoicesRequestFromVoiceFromTextModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateVoicesRequestFromDiscriminatorTypeJsonConverter()); @@ -3915,10 +4320,36 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.GetRealtimeSessionsResponseDiscriminatorStatusNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseDiscriminatorStatusNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseEmptiedByItemNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseResultUsedCreditModelNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseModelJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.CreateOrganizationUsageResponseModelNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeNullableJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDataItemDiscriminatorStatusNullableJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponseDiscriminatorStatusJsonConverter()); @@ -3977,6 +4408,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.Voice15JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetRealtimeSessionsResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetTasksResponseJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.CreateGenerateVideoResponseJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.DataItem2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.GetVoicesResponse2JsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.PatchVoicesResponseJsonConverter()); @@ -3992,6 +4424,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter>()); options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter()); + options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter()); options.Converters.Add(new global::Runway.JsonConverters.AnyOfJsonConverter()); diff --git a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs index 6680e9a..9be8c0e 100644 --- a/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs +++ b/src/libs/Runway/Generated/Runway.JsonSerializerContextTypes.g.cs @@ -1424,1495 +1424,1815 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Runway.CreateOrganizationUsageRequest? Type349 { get; set; } + public global::Runway.CreateGenerateVideoRequest? Type349 { get; set; } /// /// /// - public global::System.DateTime? Type350 { get; set; } + public global::Runway.CreateGenerateVideoRequestInput? Type350 { get; set; } /// /// /// - public global::Runway.CreateUploadsRequest? Type351 { get; set; } + public global::System.Collections.Generic.IList? Type351 { get; set; } /// /// /// - public global::Runway.CreateUploadsRequestType? Type352 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceImage? Type352 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequest? Type353 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceImageRole? Type353 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestVersion? Type354 { get; set; } + public global::System.Collections.Generic.IList? Type354 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? Type355 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceVideo? Type355 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? Type356 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole? Type356 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequest? Type357 { get; set; } + public global::System.Collections.Generic.IList? Type357 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestVersion? Type358 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem? Type358 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestReferenceImage? Type359 { get; set; } + public global::System.Collections.Generic.IList>? Type359 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageRequestQuality? Type360 { get; set; } + public global::Runway.AnyOf? Type360 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequest? Type361 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1? Type361 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestVersion? Type362 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? Type362 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type363 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2? Type363 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestProductImage? Type364 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? Type364 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type365 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputAspectRatio? Type365 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestStyleImage? Type366 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputResolution? Type366 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdRequestRatio? Type367 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputContentModeration? Type367 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequest? Type368 { get; set; } + public global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? Type368 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequestVersion? Type369 { get; set; } + public global::Runway.CreateOrganizationUsageRequest? Type369 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageRequestImage? Type370 { get; set; } + public global::System.DateTime? Type370 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequest? Type371 { get; set; } + public global::Runway.CreateUploadsRequest? Type371 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestVersion? Type372 { get; set; } + public global::Runway.CreateUploadsRequestType? Type372 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestReferenceVideo? Type373 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequest? Type373 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestOriginalProductImage? Type374 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestVersion? Type374 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type375 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestReferenceImage? Type375 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestNewProductImage? Type376 { get; set; } + public global::Runway.CreateRecipesAdLocalizationRequestTargetLanguage? Type376 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestNewProductImageView? Type377 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequest? Type377 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapRequestResolution? Type378 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestVersion? Type378 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequest? Type379 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestReferenceImage? Type379 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1? Type380 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageRequestQuality? Type380 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version? Type381 { get; set; } + public global::Runway.CreateRecipesProductAdRequest? Type381 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1FirstFrame? Type382 { get; set; } + public global::Runway.CreateRecipesProductAdRequestVersion? Type382 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio? Type383 { get; set; } + public global::System.Collections.Generic.IList? Type383 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2? Type384 { get; set; } + public global::Runway.CreateRecipesProductAdRequestProductImage? Type384 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type385 { get; set; } + public global::System.Collections.Generic.IList? Type385 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Shot? Type386 { get; set; } + public global::Runway.CreateRecipesProductAdRequestStyleImage? Type386 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version? Type387 { get; set; } + public global::Runway.CreateRecipesProductAdRequestRatio? Type387 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2FirstFrame? Type388 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequest? Type388 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio? Type389 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequestVersion? Type389 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminator? Type390 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageRequestImage? Type390 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminatorMode? Type391 { get; set; } + public global::Runway.CreateRecipesProductSwapRequest? Type391 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequest? Type392 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestVersion? Type392 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestVersion? Type393 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestReferenceVideo? Type393 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestCharacterImage? Type394 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestOriginalProductImage? Type394 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestProductImage? Type395 { get; set; } + public global::System.Collections.Generic.IList? Type395 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcRequestRatio? Type396 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestNewProductImage? Type396 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequest? Type397 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestNewProductImageView? Type397 { get; set; } /// /// /// - public global::Runway.From? Type398 { get; set; } + public global::Runway.CreateRecipesProductSwapRequestResolution? Type398 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromAudio? Type399 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequest? Type399 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromText? Type400 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1? Type400 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromVoiceFromTextModel? Type401 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Version? Type401 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromDiscriminator? Type402 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1FirstFrame? Type402 { get; set; } /// /// /// - public global::Runway.CreateVoicesRequestFromDiscriminatorType? Type403 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant1Ratio? Type403 { get; set; } /// /// /// - public global::Runway.PatchVoicesRequest? Type404 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2? Type404 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewRequest? Type405 { get; set; } + public global::System.Collections.Generic.IList? Type405 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewRequestModel? Type406 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Shot? Type406 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequest? Type407 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Version? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type408 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2FirstFrame? Type408 { get; set; } /// /// /// - public global::Runway.NodeOutputs? Type409 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestVariant2Ratio? Type409 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive? Type410 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminator? Type410 { get; set; } /// /// /// - public global::Runway.AnyOf? Type411 { get; set; } + public global::Runway.CreateRecipesMultiShotVideoRequestDiscriminatorMode? Type411 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage? Type412 { get; set; } + public global::Runway.CreateRecipesProductUgcRequest? Type412 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo? Type413 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestVersion? Type413 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio? Type414 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestCharacterImage? Type414 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator? Type415 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestProductImage? Type415 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType? Type416 { get; set; } + public global::Runway.CreateRecipesProductUgcRequestRatio? Type416 { get; set; } /// /// /// - public global::Runway.GetDocumentsSort? Type417 { get; set; } + public global::Runway.CreateRoutersRequest? Type417 { get; set; } /// /// /// - public global::Runway.GetDocumentsOrder? Type418 { get; set; } + public global::Runway.CreateRoutersRequestSettings? Type418 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse? Type419 { get; set; } + public global::Runway.CreateRoutersRequestSettingsModels? Type419 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type420 { get; set; } + public global::Runway.CreateRoutersRequestSettingsModelsMode? Type420 { get; set; } /// /// /// - public global::Runway.DataItem? Type421 { get; set; } + public global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? Type421 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type422 { get; set; } + public global::Runway.CreateRoutersRequestSettingsOptimizeFor? Type422 { get; set; } /// /// /// - public global::Runway.Voice4? Type423 { get; set; } + public global::Runway.PatchRoutersRequest? Type423 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type424 { get; set; } + public global::Runway.PatchRoutersRequestSettings? Type424 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type425 { get; set; } + public global::Runway.PatchRoutersRequestSettingsModels? Type425 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type426 { get; set; } + public global::Runway.PatchRoutersRequestSettingsModelsMode? Type426 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type427 { get; set; } + public global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? Type427 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type428 { get; set; } + public global::Runway.PatchRoutersRequestSettingsOptimizeFor? Type428 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type429 { get; set; } + public global::Runway.CreateVoicesRequest? Type429 { get; set; } /// /// /// - public global::Runway.Voice5? Type430 { get; set; } + public global::Runway.From? Type430 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type431 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromAudio? Type431 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type432 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromText? Type432 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type433 { get; set; } + public global::Runway.CreateVoicesRequestFromVoiceFromTextModel? Type433 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type434 { get; set; } + public global::Runway.CreateVoicesRequestFromDiscriminator? Type434 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type435 { get; set; } + public global::Runway.CreateVoicesRequestFromDiscriminatorType? Type435 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type436 { get; set; } + public global::Runway.PatchVoicesRequest? Type436 { get; set; } /// /// /// - public global::Runway.Voice6? Type437 { get; set; } + public global::Runway.CreateVoicesPreviewRequest? Type437 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type438 { get; set; } + public global::Runway.CreateVoicesPreviewRequestModel? Type438 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type439 { get; set; } + public global::Runway.CreateWorkflowsRequest? Type439 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type440 { get; set; } + public global::System.Collections.Generic.Dictionary? Type440 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type441 { get; set; } + public global::Runway.NodeOutputs? Type441 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type442 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputPrimitive? Type442 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type443 { get; set; } + public global::Runway.AnyOf? Type443 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type444 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputImage? Type444 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponse? Type445 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputVideo? Type445 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessing? Type446 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsWorkflowNodeOutputAudio? Type446 { get; set; } /// /// /// - public global::Runway.Voice7? Type447 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminator? Type447 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type448 { get; set; } + public global::Runway.CreateWorkflowsRequestNodeOutputsDiscriminatorType? Type448 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type449 { get; set; } + public global::Runway.GetDocumentsSort? Type449 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type450 { get; set; } + public global::Runway.GetDocumentsOrder? Type450 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type451 { get; set; } + public global::Runway.GetAvatarsResponse? Type451 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type452 { get; set; } + public global::System.Collections.Generic.IList? Type452 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReady? Type453 { get; set; } + public global::Runway.DataItem? Type453 { get; set; } /// /// /// - public global::Runway.Voice8? Type454 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessing? Type454 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type455 { get; set; } + public global::Runway.Voice4? Type455 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type456 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type456 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type457 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type457 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type458 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceCustomVoiceResponse? Type458 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type459 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminator? Type459 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailed? Type460 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarProcessingVoiceDiscriminatorType? Type460 { get; set; } /// /// /// - public global::Runway.Voice9? Type461 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReady? Type461 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type462 { get; set; } + public global::Runway.Voice5? Type462 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type463 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type463 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type464 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type464 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type465 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceCustomVoiceResponse? Type465 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type466 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminator? Type466 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminator? Type467 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarReadyVoiceDiscriminatorType? Type467 { get; set; } /// /// /// - public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type468 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailed? Type468 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse? Type469 { get; set; } + public global::Runway.Voice6? Type469 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type470 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type470 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItem? Type471 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type471 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type472 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceCustomVoiceResponse? Type472 { get; set; } /// /// /// - public global::Runway.AvatarVariant1? Type473 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminator? Type473 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type474 { get; set; } + public global::Runway.GetAvatarsResponseDataItemAvatarFailedVoiceDiscriminatorType? Type474 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type475 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminator? Type475 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type476 { get; set; } + public global::Runway.GetAvatarsResponseDataItemDiscriminatorStatus? Type476 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type477 { get; set; } + public global::Runway.CreateAvatarsResponse? Type477 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponse? Type478 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessing? Type478 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type479 { get; set; } + public global::Runway.Voice7? Type479 { get; set; } /// /// /// - public global::Runway.GetAvatarUsageResponseByDayItem? Type480 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type480 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponse2? Type481 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type481 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1? Type482 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type482 { get; set; } /// /// /// - public global::Runway.AvatarVariant12? Type483 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminator? Type483 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type484 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type484 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type485 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReady? Type485 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type486 { get; set; } + public global::Runway.Voice8? Type486 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type487 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type487 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type488 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type488 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type489 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type489 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type490 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminator? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type491 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type492 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailed? Type492 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type493 { get; set; } + public global::Runway.Voice9? Type493 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type494 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type494 { get; set; } /// /// /// - public global::Runway.AnyOf? Type495 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type495 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type496 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type496 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type497 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminator? Type497 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type498 { get; set; } + public global::Runway.CreateAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type498 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2? Type499 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminator? Type499 { get; set; } /// /// /// - public global::Runway.AvatarVariant13? Type500 { get; set; } + public global::Runway.CreateAvatarsResponseDiscriminatorStatus? Type500 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type501 { get; set; } + public global::Runway.GetAvatarConversationsResponse? Type501 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type502 { get; set; } + public global::System.Collections.Generic.IList? Type502 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type503 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItem? Type503 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type504 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemStatus? Type504 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type505 { get; set; } + public global::Runway.AvatarVariant1? Type505 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type506 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1PresetAvatarSummary? Type506 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type507 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1CustomAvatarSummary? Type507 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type508 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1Discriminator? Type508 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type509 { get; set; } + public global::Runway.GetAvatarConversationsResponseDataItemAvatarVariant1DiscriminatorType? Type509 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type510 { get; set; } + public global::Runway.GetAvatarUsageResponse? Type510 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type511 { get; set; } + public global::System.Collections.Generic.IList? Type511 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type512 { get; set; } + public global::Runway.GetAvatarUsageResponseByDayItem? Type512 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type513 { get; set; } + public global::Runway.GetAvatarConversationsResponse2? Type513 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type514 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1? Type514 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3? Type515 { get; set; } + public global::Runway.AvatarVariant12? Type515 { get; set; } /// /// /// - public global::Runway.AvatarVariant14? Type516 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1PresetAvatar? Type516 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type517 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1CustomAvatar? Type517 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type518 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1Discriminator? Type518 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type519 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1AvatarVariant1DiscriminatorType? Type519 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type520 { get; set; } + public global::System.Collections.Generic.IList? Type520 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type521 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItem? Type521 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type522 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemRole? Type522 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type523 { get; set; } + public global::System.Collections.Generic.IList? Type523 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type524 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolCall? Type524 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type525 { get; set; } + public global::System.Collections.Generic.IList? Type525 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type526 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1TranscriptItemToolResult? Type526 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type527 { get; set; } + public global::Runway.AnyOf? Type527 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type528 { get; set; } + public global::System.Collections.Generic.IList? Type528 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type529 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1Tool? Type529 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type530 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant1ToolType? Type530 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminator? Type531 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2? Type531 { get; set; } /// /// /// - public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type532 { get; set; } + public global::Runway.AvatarVariant13? Type532 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponse2? Type533 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1PresetAvatar? Type533 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessing? Type534 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1CustomAvatar? Type534 { get; set; } /// /// /// - public global::Runway.Voice10? Type535 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1Discriminator? Type535 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type536 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2AvatarVariant1DiscriminatorType? Type536 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type537 { get; set; } + public global::System.Collections.Generic.IList? Type537 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type538 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItem? Type538 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type539 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemRole? Type539 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type540 { get; set; } + public global::System.Collections.Generic.IList? Type540 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReady? Type541 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolCall? Type541 { get; set; } /// /// /// - public global::Runway.Voice11? Type542 { get; set; } + public global::System.Collections.Generic.IList? Type542 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type543 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2TranscriptItemToolResult? Type543 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type544 { get; set; } + public global::System.Collections.Generic.IList? Type544 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type545 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2Tool? Type545 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type546 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant2ToolType? Type546 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type547 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3? Type547 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailed? Type548 { get; set; } + public global::Runway.AvatarVariant14? Type548 { get; set; } /// /// /// - public global::Runway.Voice12? Type549 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1PresetAvatar? Type549 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type550 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1CustomAvatar? Type550 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type551 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1Discriminator? Type551 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type552 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3AvatarVariant1DiscriminatorType? Type552 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type553 { get; set; } + public global::System.Collections.Generic.IList? Type553 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type554 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItem? Type554 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminator? Type555 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemRole? Type555 { get; set; } /// /// /// - public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type556 { get; set; } + public global::System.Collections.Generic.IList? Type556 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse? Type557 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolCall? Type557 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessing? Type558 { get; set; } + public global::System.Collections.Generic.IList? Type558 { get; set; } /// /// /// - public global::Runway.Voice13? Type559 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3TranscriptItemToolResult? Type559 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type560 { get; set; } + public global::System.Collections.Generic.IList? Type560 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type561 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3Tool? Type561 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type562 { get; set; } + public global::Runway.GetAvatarConversationsResponseVariant3ToolType? Type562 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type563 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminator? Type563 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type564 { get; set; } + public global::Runway.GetAvatarConversationsResponseDiscriminatorStatus? Type564 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReady? Type565 { get; set; } + public global::Runway.GetAvatarsResponse2? Type565 { get; set; } /// /// /// - public global::Runway.Voice14? Type566 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessing? Type566 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type567 { get; set; } + public global::Runway.Voice10? Type567 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type568 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type568 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type569 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type569 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type570 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type570 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type571 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminator? Type571 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailed? Type572 { get; set; } + public global::Runway.GetAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type572 { get; set; } /// /// /// - public global::Runway.Voice15? Type573 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReady? Type573 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type574 { get; set; } + public global::Runway.Voice11? Type574 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type575 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type575 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type576 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type576 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type577 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type577 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type578 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminator? Type578 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminator? Type579 { get; set; } + public global::Runway.GetAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type579 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type580 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailed? Type580 { get; set; } /// /// /// - public global::Runway.PatchAvatarsResponse2? Type581 { get; set; } + public global::Runway.Voice12? Type581 { get; set; } /// /// /// - public global::Runway.CreateAvatarVideosResponse? Type582 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type582 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponse? Type583 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type583 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseType? Type584 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type584 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type585 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminator? Type585 { get; set; } /// /// /// - public global::Runway.CreateDocumentsResponseUsedByItem? Type586 { get; set; } + public global::Runway.GetAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type586 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse? Type587 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminator? Type587 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type588 { get; set; } + public global::Runway.GetAvatarsResponseDiscriminatorStatus? Type588 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItem? Type589 { get; set; } + public global::Runway.PatchAvatarsResponse? Type589 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemType? Type590 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessing? Type590 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type591 { get; set; } + public global::Runway.Voice13? Type591 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type592 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponse? Type592 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponse2? Type593 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceRunwayLivePresetVoiceResponsePresetId? Type593 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseType? Type594 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceCustomVoiceResponse? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminator? Type595 { get; set; } /// /// /// - public global::Runway.GetDocumentsResponseUsedByItem? Type596 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarProcessingVoiceDiscriminatorType? Type596 { get; set; } /// /// /// - public global::Runway.CreateRealtimeSessionsResponse? Type597 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReady? Type597 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponse? Type598 { get; set; } + public global::Runway.Voice14? Type598 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type599 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponse? Type599 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionReady? Type600 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceRunwayLivePresetVoiceResponsePresetId? Type600 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type601 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceCustomVoiceResponse? Type601 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type602 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminator? Type602 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type603 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarReadyVoiceDiscriminatorType? Type603 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type604 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailed? Type604 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type605 { get; set; } + public global::Runway.Voice15? Type605 { get; set; } /// /// /// - public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type606 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponse? Type606 { get; set; } /// /// /// - public global::Runway.GetTasksResponse? Type607 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceRunwayLivePresetVoiceResponsePresetId? Type607 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant1? Type608 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceCustomVoiceResponse? Type608 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant2? Type609 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminator? Type609 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant3? Type610 { get; set; } + public global::Runway.PatchAvatarsResponseAvatarFailedVoiceDiscriminatorType? Type610 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant4? Type611 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminator? Type611 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant5? Type612 { get; set; } + public global::Runway.PatchAvatarsResponseDiscriminatorStatus? Type612 { get; set; } /// /// /// - public global::Runway.GetTasksResponseVariant6? Type613 { get; set; } + public global::Runway.PatchAvatarsResponse2? Type613 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminator? Type614 { get; set; } + public global::Runway.CreateAvatarVideosResponse? Type614 { get; set; } /// /// /// - public global::Runway.GetTasksResponseDiscriminatorStatus? Type615 { get; set; } + public global::Runway.CreateDocumentsResponse? Type615 { get; set; } /// /// /// - public global::Runway.GetTasksResponse2? Type616 { get; set; } + public global::Runway.CreateDocumentsResponseType? Type616 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse? Type617 { get; set; } + public global::System.Collections.Generic.IList? Type617 { get; set; } /// /// /// - public global::Runway.CreateImageToVideoResponse2? Type618 { get; set; } + public global::Runway.CreateDocumentsResponseUsedByItem? Type618 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse? Type619 { get; set; } + public global::Runway.GetDocumentsResponse? Type619 { get; set; } /// /// /// - public global::Runway.CreateTextToVideoResponse2? Type620 { get; set; } + public global::System.Collections.Generic.IList? Type620 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse? Type621 { get; set; } + public global::Runway.GetDocumentsResponseDataItem? Type621 { get; set; } /// /// /// - public global::Runway.CreateVideoToVideoResponse2? Type622 { get; set; } + public global::Runway.GetDocumentsResponseDataItemType? Type622 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse? Type623 { get; set; } + public global::System.Collections.Generic.IList? Type623 { get; set; } /// /// /// - public global::Runway.CreateTextToImageResponse2? Type624 { get; set; } + public global::Runway.GetDocumentsResponseDataItemUsedByItem? Type624 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse? Type625 { get; set; } + public global::Runway.GetDocumentsResponse2? Type625 { get; set; } /// /// /// - public global::Runway.CreateImageUpscaleResponse2? Type626 { get; set; } + public global::Runway.GetDocumentsResponseType? Type626 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse? Type627 { get; set; } + public global::System.Collections.Generic.IList? Type627 { get; set; } /// /// /// - public global::Runway.CreateVideoUpscaleResponse2? Type628 { get; set; } + public global::Runway.GetDocumentsResponseUsedByItem? Type628 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse? Type629 { get; set; } + public global::Runway.CreateRealtimeSessionsResponse? Type629 { get; set; } /// /// /// - public global::Runway.CreateCharacterPerformanceResponse2? Type630 { get; set; } + public global::Runway.GetRealtimeSessionsResponse? Type630 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse? Type631 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionNotReady? Type631 { get; set; } /// /// /// - public global::Runway.CreateSoundEffectResponse2? Type632 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionReady? Type632 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse? Type633 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionRunning? Type633 { get; set; } /// /// /// - public global::Runway.CreateSpeechToSpeechResponse2? Type634 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCompleted? Type634 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse? Type635 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionFailed? Type635 { get; set; } /// /// /// - public global::Runway.CreateTextToSpeechResponse2? Type636 { get; set; } + public global::Runway.GetRealtimeSessionsResponseSessionCancelled? Type636 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse? Type637 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminator? Type637 { get; set; } /// /// /// - public global::Runway.CreateVoiceDubbingResponse2? Type638 { get; set; } + public global::Runway.GetRealtimeSessionsResponseDiscriminatorStatus? Type638 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse? Type639 { get; set; } + public global::Runway.GetTasksResponse? Type639 { get; set; } /// /// /// - public global::Runway.CreateVoiceIsolationResponse2? Type640 { get; set; } + public global::Runway.GetTasksResponseVariant1? Type640 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponse? Type641 { get; set; } + public global::Runway.GetTasksResponseVariant2? Type641 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTier? Type642 { get; set; } + public global::Runway.GetTasksResponseVariant3? Type642 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type643 { get; set; } + public global::Runway.GetTasksResponseVariant4? Type643 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseTierModels2? Type644 { get; set; } + public global::Runway.GetTasksResponseVariant5? Type644 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsage? Type645 { get; set; } + public global::Runway.GetTasksResponseVariant6? Type645 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type646 { get; set; } + public global::Runway.GetTasksResponseDiscriminator? Type646 { get; set; } /// /// /// - public global::Runway.GetOrganizationResponseUsageModels2? Type647 { get; set; } + public global::Runway.GetTasksResponseDiscriminatorStatus? Type647 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponse? Type648 { get; set; } + public global::Runway.GetTasksResponse2? Type648 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type649 { get; set; } + public global::Runway.CreateImageToVideoResponse? Type649 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResult? Type650 { get; set; } + public global::Runway.CreateImageToVideoResponse2? Type650 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type651 { get; set; } + public global::Runway.CreateTextToVideoResponse? Type651 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type652 { get; set; } + public global::Runway.CreateTextToVideoResponse2? Type652 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type653 { get; set; } + public global::Runway.CreateVideoToVideoResponse? Type653 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type654 { get; set; } + public global::Runway.CreateVideoToVideoResponse2? Type654 { get; set; } /// /// /// - public global::Runway.CreateOrganizationUsageResponseModel? Type655 { get; set; } + public global::Runway.CreateTextToImageResponse? Type655 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse? Type656 { get; set; } + public global::Runway.CreateTextToImageResponse2? Type656 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type657 { get; set; } + public global::Runway.CreateImageUpscaleResponse? Type657 { get; set; } /// /// /// - public global::Runway.CreateUploadsResponse2? Type658 { get; set; } + public global::Runway.CreateImageUpscaleResponse2? Type658 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse? Type659 { get; set; } + public global::Runway.CreateVideoUpscaleResponse? Type659 { get; set; } /// /// /// - public global::Runway.CreateRecipesAdLocalizationResponse2? Type660 { get; set; } + public global::Runway.CreateVideoUpscaleResponse2? Type660 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse? Type661 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse? Type661 { get; set; } /// /// /// - public global::Runway.CreateRecipesMarketingStockImageResponse2? Type662 { get; set; } + public global::Runway.CreateCharacterPerformanceResponse2? Type662 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse? Type663 { get; set; } + public global::Runway.CreateSoundEffectResponse? Type663 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductAdResponse2? Type664 { get; set; } + public global::Runway.CreateSoundEffectResponse2? Type664 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse? Type665 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse? Type665 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductCampaignImageResponse2? Type666 { get; set; } + public global::Runway.CreateSpeechToSpeechResponse2? Type666 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse? Type667 { get; set; } + public global::Runway.CreateTextToSpeechResponse? Type667 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductSwapResponse2? Type668 { get; set; } + public global::Runway.CreateTextToSpeechResponse2? Type668 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse? Type669 { get; set; } + public global::Runway.CreateVoiceDubbingResponse? Type669 { get; set; } /// /// /// - public global::Runway.CreateRecipesMultiShotVideoResponse2? Type670 { get; set; } + public global::Runway.CreateVoiceDubbingResponse2? Type670 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse? Type671 { get; set; } + public global::Runway.CreateVoiceIsolationResponse? Type671 { get; set; } /// /// /// - public global::Runway.CreateRecipesProductUgcResponse2? Type672 { get; set; } + public global::Runway.CreateVoiceIsolationResponse2? Type672 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse? Type673 { get; set; } + public global::Runway.CreateGenerateVideoResponse? Type673 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type674 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? Type674 { get; set; } /// /// /// - public global::Runway.DataItem2? Type675 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? Type675 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type676 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? Type676 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceReady? Type677 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? Type677 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type678 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? Type678 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminator? Type679 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? Type679 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type680 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? Type680 { get; set; } /// /// /// - public global::Runway.CreateVoicesResponse? Type681 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? Type681 { get; set; } /// /// /// - public global::Runway.GetVoicesResponse2? Type682 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? Type682 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceProcessing? Type683 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? Type683 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceReady? Type684 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? Type684 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseVoiceFailed? Type685 { get; set; } + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? Type685 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminator? Type686 { get; set; } + public global::Runway.CreateGenerateVideoResponseDiscriminator? Type686 { get; set; } /// /// /// - public global::Runway.GetVoicesResponseDiscriminatorStatus? Type687 { get; set; } + public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? Type687 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponse? Type688 { get; set; } + public global::Runway.CreateGenerateVideoResponse2? Type688 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceProcessing? Type689 { get; set; } + public global::System.Collections.Generic.IList? Type689 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceReady? Type690 { get; set; } + public global::Runway.CreateGenerateVideoResponsePipelineItem? Type690 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseVoiceFailed? Type691 { get; set; } + public global::Runway.CreateGenerateVideoResponsePipelineItemFilter? Type691 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminator? Type692 { get; set; } + public global::System.Collections.Generic.IList? Type692 { get; set; } /// /// /// - public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type693 { get; set; } + public global::Runway.CreateGenerateVideoResponseEmptiedByItem? Type693 { get; set; } /// /// /// - public global::Runway.CreateVoicesPreviewResponse? Type694 { get; set; } + public global::Runway.CreateGenerateVideoResponse3? Type694 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse? Type695 { get; set; } + public global::Runway.GetOrganizationResponse? Type695 { get; set; } /// /// /// - public global::Runway.CreateWorkflowsResponse2? Type696 { get; set; } + public global::Runway.GetOrganizationResponseTier? Type696 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse? Type697 { get; set; } + public global::System.Collections.Generic.Dictionary? Type697 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseGraph? Type698 { get; set; } + public global::Runway.GetOrganizationResponseTierModels2? Type698 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse2? Type699 { get; set; } + public global::Runway.GetOrganizationResponseUsage? Type699 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponse3? Type700 { get; set; } + public global::System.Collections.Generic.Dictionary? Type700 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type701 { get; set; } + public global::Runway.GetOrganizationResponseUsageModels2? Type701 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItem? Type702 { get; set; } + public global::Runway.CreateOrganizationUsageResponse? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::System.Collections.Generic.IList? Type703 { get; set; } /// /// /// - public global::Runway.GetWorkflowsResponseDataItemVersion? Type704 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResult? Type704 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type706 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCredit? Type706 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type707 { get; set; } + public global::Runway.CreateOrganizationUsageResponseResultUsedCreditModel? Type707 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type708 { get; set; } + public global::System.Collections.Generic.IList? Type708 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type709 { get; set; } + public global::Runway.CreateOrganizationUsageResponseModel? Type709 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type710 { get; set; } + public global::Runway.CreateUploadsResponse? Type710 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type711 { get; set; } + public global::System.Collections.Generic.Dictionary? Type711 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type712 { get; set; } + public global::Runway.CreateUploadsResponse2? Type712 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type713 { get; set; } + public global::Runway.CreateRecipesAdLocalizationResponse? Type713 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type714 { get; set; } + public global::Runway.CreateRecipesAdLocalizationResponse2? Type714 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type715 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse? Type715 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type716 { get; set; } + public global::Runway.CreateRecipesMarketingStockImageResponse2? Type716 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type717 { get; set; } + public global::Runway.CreateRecipesProductAdResponse? Type717 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type718 { get; set; } + public global::Runway.CreateRecipesProductAdResponse2? Type718 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type719 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse? Type719 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type720 { get; set; } + public global::Runway.CreateRecipesProductCampaignImageResponse2? Type720 { get; set; } /// /// /// - public global::Runway.GetWorkflowInvocationsResponse2? Type721 { get; set; } + public global::Runway.CreateRecipesProductSwapResponse? Type721 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductSwapResponse2? Type722 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponse? Type723 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesMultiShotVideoResponse2? Type724 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponse? Type725 { get; set; } + /// + /// + /// + public global::Runway.CreateRecipesProductUgcResponse2? Type726 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponse? Type727 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type728 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItem? Type729 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettings? Type730 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsModels? Type731 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsModelsMode? Type732 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? Type733 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? Type734 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponse? Type735 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettings? Type736 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsModels? Type737 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsModelsMode? Type738 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? Type739 { get; set; } + /// + /// + /// + public global::Runway.CreateRoutersResponseSettingsOptimizeFor? Type740 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponse2? Type741 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettings? Type742 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsModels? Type743 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsModelsMode? Type744 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? Type745 { get; set; } + /// + /// + /// + public global::Runway.GetRoutersResponseSettingsOptimizeFor? Type746 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponse? Type747 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettings? Type748 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsModels? Type749 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsModelsMode? Type750 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? Type751 { get; set; } + /// + /// + /// + public global::Runway.PatchRoutersResponseSettingsOptimizeFor? Type752 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponse? Type753 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type754 { get; set; } + /// + /// + /// + public global::Runway.DataItem2? Type755 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceProcessing? Type756 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceReady? Type757 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemVoiceFailed? Type758 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemDiscriminator? Type759 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDataItemDiscriminatorStatus? Type760 { get; set; } + /// + /// + /// + public global::Runway.CreateVoicesResponse? Type761 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponse2? Type762 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceProcessing? Type763 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceReady? Type764 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseVoiceFailed? Type765 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDiscriminator? Type766 { get; set; } + /// + /// + /// + public global::Runway.GetVoicesResponseDiscriminatorStatus? Type767 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponse? Type768 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceProcessing? Type769 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceReady? Type770 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseVoiceFailed? Type771 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseDiscriminator? Type772 { get; set; } + /// + /// + /// + public global::Runway.PatchVoicesResponseDiscriminatorStatus? Type773 { get; set; } + /// + /// + /// + public global::Runway.CreateVoicesPreviewResponse? Type774 { get; set; } + /// + /// + /// + public global::Runway.CreateWorkflowsResponse? Type775 { get; set; } + /// + /// + /// + public global::Runway.CreateWorkflowsResponse2? Type776 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse? Type777 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseGraph? Type778 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse2? Type779 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponse3? Type780 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type781 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseDataItem? Type782 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type783 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowsResponseDataItemVersion? Type784 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponse? Type785 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationPending? Type786 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationThrottled? Type787 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationCancelled? Type788 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunning? Type789 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary>? Type790 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type791 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationRunningNodeErrors2? Type792 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailed? Type793 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type794 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationFailedNodeErrors2? Type795 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceeded? Type796 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.Dictionary? Type797 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseWorkflowInvocationSucceededNodeErrors2? Type798 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminator? Type799 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponseDiscriminatorStatus? Type800 { get; set; } + /// + /// + /// + public global::Runway.GetWorkflowInvocationsResponse2? Type801 { get; set; } /// /// @@ -3145,122 +3465,150 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType57 { get; set; } + public global::System.Collections.Generic.List? ListType57 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType58 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType59 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List>? ListType60 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType61 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType62 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType63 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType64 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType58 { get; set; } + public global::System.Collections.Generic.List? ListType65 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType59 { get; set; } + public global::System.Collections.Generic.List? ListType66 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType60 { get; set; } + public global::System.Collections.Generic.List? ListType67 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType61 { get; set; } + public global::System.Collections.Generic.List? ListType68 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType62 { get; set; } + public global::System.Collections.Generic.List? ListType69 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType63 { get; set; } + public global::System.Collections.Generic.List? ListType70 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType64 { get; set; } + public global::System.Collections.Generic.List? ListType71 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType65 { get; set; } + public global::System.Collections.Generic.List? ListType72 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType66 { get; set; } + public global::System.Collections.Generic.List? ListType73 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType67 { get; set; } + public global::System.Collections.Generic.List? ListType74 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType68 { get; set; } + public global::System.Collections.Generic.List? ListType75 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType69 { get; set; } + public global::System.Collections.Generic.List? ListType76 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType70 { get; set; } + public global::System.Collections.Generic.List? ListType77 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType71 { get; set; } + public global::System.Collections.Generic.List? ListType78 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType72 { get; set; } + public global::System.Collections.Generic.List? ListType79 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType73 { get; set; } + public global::System.Collections.Generic.List? ListType80 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType74 { get; set; } + public global::System.Collections.Generic.List? ListType81 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType75 { get; set; } + public global::System.Collections.Generic.List? ListType82 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType76 { get; set; } + public global::System.Collections.Generic.List? ListType83 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType77 { get; set; } + public global::System.Collections.Generic.List? ListType84 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType78 { get; set; } + public global::System.Collections.Generic.List? ListType85 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType79 { get; set; } + public global::System.Collections.Generic.List? ListType86 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType80 { get; set; } + public global::System.Collections.Generic.List? ListType87 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType81 { get; set; } + public global::System.Collections.Generic.List? ListType88 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType82 { get; set; } + public global::System.Collections.Generic.List? ListType89 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType83 { get; set; } + public global::System.Collections.Generic.List? ListType90 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType84 { get; set; } + public global::System.Collections.Generic.List? ListType91 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType85 { get; set; } + public global::System.Collections.Generic.List? ListType92 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? ListType86 { get; set; } + public global::System.Collections.Generic.Dictionary>? ListType93 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateRouters.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateRouters.g.cs new file mode 100644 index 0000000..72f155d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.CreateRouters.g.cs @@ -0,0 +1,520 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_CreateRoutersSecurityRequirement0 = + 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_CreateRoutersSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_CreateRoutersSecurityRequirement0, + }; + partial void PrepareCreateRoutersArguments( + global::System.Net.Http.HttpClient httpClient, + ref string xRunwayVersion, + global::Runway.CreateRoutersRequest request); + partial void PrepareCreateRoutersRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string xRunwayVersion, + global::Runway.CreateRoutersRequest request); + partial void ProcessCreateRoutersResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateRoutersResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// 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 + /// + /// + /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const router = await client.routers.create({
+ /// slug: 'preview-fast',
+ /// name: 'Preview (fast)',
+ /// settings: {
+ /// optimizeFor: 'cost',
+ /// },
+ /// }); + ///
+ public async global::System.Threading.Tasks.Task CreateRoutersAsync( + + global::Runway.CreateRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateRoutersAsResponseAsync( + + request: request, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// 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 + /// + /// + /// import RunwayML from '@runwayml/sdk';
+ /// const client = new RunwayML();
+ /// const router = await client.routers.create({
+ /// slug: 'preview-fast',
+ /// name: 'Preview (fast)',
+ /// settings: {
+ /// optimizeFor: 'cost',
+ /// },
+ /// }); + ///
+ public async global::System.Threading.Tasks.Task> CreateRoutersAsResponseAsync( + + global::Runway.CreateRoutersRequest 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); + PrepareCreateRoutersArguments( + httpClient: HttpClient, + xRunwayVersion: ref xRunwayVersion, + request: request); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateRoutersSecurityRequirements, + operationName: "CreateRoutersAsync"); + + 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/routers", + 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); + PrepareCreateRoutersRequest( + 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: "createRouters", + methodName: "CreateRoutersAsync", + pathTemplate: "\"/v1/routers\"", + 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: "createRouters", + methodName: "CreateRoutersAsync", + pathTemplate: "\"/v1/routers\"", + 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: "createRouters", + methodName: "CreateRoutersAsync", + pathTemplate: "\"/v1/routers\"", + 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); + ProcessCreateRoutersResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "createRouters", + methodName: "CreateRoutersAsync", + pathTemplate: "\"/v1/routers\"", + 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: "createRouters", + methodName: "CreateRoutersAsync", + pathTemplate: "\"/v1/routers\"", + 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); + } + + 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); + ProcessCreateRoutersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.CreateRoutersResponse.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.CreateRoutersResponse.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(); + } + } + /// + /// Create Model Router
+ /// Create a Model Router configuration. + ///
+ /// + /// Default Value: 2024-11-06 + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Optional human-readable display name for this router. Defaults to the slug when omitted. + /// + /// + /// An optional Model Router description. + /// + /// + /// Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router. + /// + /// 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 CreateRoutersAsync( + string slug, + string xRunwayVersion = "2024-11-06", + string? name = default, + string? description = default, + global::Runway.CreateRoutersRequestSettings? settings = default, + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Runway.CreateRoutersRequest + { + Slug = slug, + Name = name, + Description = description, + Settings = settings, + }; + + return await CreateRoutersAsync( + xRunwayVersion: xRunwayVersion, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.DeleteRoutersById.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.DeleteRoutersById.g.cs new file mode 100644 index 0000000..123dcdd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.DeleteRoutersById.g.cs @@ -0,0 +1,419 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_DeleteRoutersByIdSecurityRequirement0 = + 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_DeleteRoutersByIdSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_DeleteRoutersByIdSecurityRequirement0, + }; + partial void PrepareDeleteRoutersByIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref string xRunwayVersion); + partial void PrepareDeleteRoutersByIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + string xRunwayVersion); + partial void ProcessDeleteRoutersByIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + /// + /// Delete Model Router
+ /// Delete a Model Router configuration. Deleted Model Routers cannot be used for generation. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task DeleteRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + await DeleteRoutersByIdAsResponseAsync( + id: id, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + /// + /// Delete Model Router
+ /// Delete a Model Router configuration. Deleted Model Routers cannot be used for generation. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task DeleteRoutersByIdAsResponseAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteRoutersByIdArguments( + httpClient: HttpClient, + id: ref id, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteRoutersByIdSecurityRequirements, + operationName: "DeleteRoutersByIdAsync"); + + 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/routers/{id}", + 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.Delete, + 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()); + + global::Runway.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteRoutersByIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + xRunwayVersion: xRunwayVersion!); + + 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: "deleteRoutersById", + methodName: "DeleteRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "DELETE", + 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: "deleteRoutersById", + methodName: "DeleteRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "DELETE", + 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: "deleteRoutersById", + methodName: "DeleteRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "DELETE", + 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); + ProcessDeleteRoutersByIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "deleteRoutersById", + methodName: "DeleteRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "DELETE", + 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: "deleteRoutersById", + methodName: "DeleteRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "DELETE", + 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); + } + + 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); + + try + { + __response.EnsureSuccessStatusCode(); + + return new global::Runway.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Runway.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + 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(); + return new global::Runway.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Runway.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri); + } + 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(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.EditRoutersById.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.EditRoutersById.g.cs new file mode 100644 index 0000000..fe89615 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.EditRoutersById.g.cs @@ -0,0 +1,503 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_EditRoutersByIdSecurityRequirement0 = + 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_EditRoutersByIdSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_EditRoutersByIdSecurityRequirement0, + }; + partial void PrepareEditRoutersByIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref string xRunwayVersion, + global::Runway.PatchRoutersRequest request); + partial void PrepareEditRoutersByIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + string xRunwayVersion, + global::Runway.PatchRoutersRequest request); + partial void ProcessEditRoutersByIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessEditRoutersByIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task EditRoutersByIdAsync( + global::System.Guid id, + + global::Runway.PatchRoutersRequest request, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await EditRoutersByIdAsResponseAsync( + id: id, + + request: request, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> EditRoutersByIdAsResponseAsync( + global::System.Guid id, + + global::Runway.PatchRoutersRequest 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); + PrepareEditRoutersByIdArguments( + httpClient: HttpClient, + id: ref id, + xRunwayVersion: ref xRunwayVersion, + request: request); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_EditRoutersByIdSecurityRequirements, + operationName: "EditRoutersByIdAsync"); + + 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/routers/{id}", + 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: new global::System.Net.Http.HttpMethod("PATCH"), + 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); + PrepareEditRoutersByIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + 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: "editRoutersById", + methodName: "EditRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "PATCH", + 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: "editRoutersById", + methodName: "EditRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "PATCH", + 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: "editRoutersById", + methodName: "EditRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "PATCH", + 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); + ProcessEditRoutersByIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "editRoutersById", + methodName: "EditRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "PATCH", + 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: "editRoutersById", + methodName: "EditRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "PATCH", + 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); + } + + 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); + ProcessEditRoutersByIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.PatchRoutersResponse.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.PatchRoutersResponse.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(); + } + } + /// + /// Update Model Router
+ /// Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values. + ///
+ /// + /// + /// Default Value: 2024-11-06 + /// + /// + /// Display name. The slug is immutable and cannot be changed after creation. + /// + /// + /// + /// Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling). + /// + /// 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 EditRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + string? name = default, + string? description = default, + global::Runway.PatchRoutersRequestSettings? settings = default, + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::Runway.PatchRoutersRequest + { + Name = name, + Description = description, + Settings = settings, + }; + + return await EditRoutersByIdAsync( + id: id, + xRunwayVersion: xRunwayVersion, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRouters.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRouters.g.cs new file mode 100644 index 0000000..56c2068 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRouters.g.cs @@ -0,0 +1,477 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetRoutersSecurityRequirement0 = + 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_GetRoutersSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetRoutersSecurityRequirement0, + }; + partial void PrepareGetRoutersArguments( + global::System.Net.Http.HttpClient httpClient, + ref string? cursor, + ref int limit, + ref string xRunwayVersion); + partial void PrepareGetRoutersRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? cursor, + int limit, + string xRunwayVersion); + partial void ProcessGetRoutersResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetRoutersResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// List Model Routers
+ /// List Model Router configurations for the authenticated organization with cursor-based pagination. + ///
+ /// + /// + /// Default Value: 50 + /// + /// + /// 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 routers = await client.routers.list();
+ /// for await (const router of routers) {
+ /// console.log(router);
+ /// } + ///
+ public async global::System.Threading.Tasks.Task GetRoutersAsync( + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetRoutersAsResponseAsync( + limit: limit, + cursor: cursor, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// List Model Routers
+ /// List Model Router configurations for the authenticated organization with cursor-based pagination. + ///
+ /// + /// + /// Default Value: 50 + /// + /// + /// 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 routers = await client.routers.list();
+ /// for await (const router of routers) {
+ /// console.log(router);
+ /// } + ///
+ public async global::System.Threading.Tasks.Task> GetRoutersAsResponseAsync( + int limit, + string? cursor = default, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetRoutersArguments( + httpClient: HttpClient, + cursor: ref cursor, + limit: ref limit, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRoutersSecurityRequirements, + operationName: "GetRoutersAsync"); + + 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/routers", + baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("cursor", cursor) + .AddRequiredParameter("limit", limit.ToString()!) + ; + 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.Get, + 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()); + + global::Runway.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetRoutersRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + cursor: cursor, + limit: limit!, + xRunwayVersion: xRunwayVersion!); + + 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: "getRouters", + methodName: "GetRoutersAsync", + pathTemplate: "\"/v1/routers\"", + httpMethod: "GET", + 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: "getRouters", + methodName: "GetRoutersAsync", + pathTemplate: "\"/v1/routers\"", + httpMethod: "GET", + 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: "getRouters", + methodName: "GetRoutersAsync", + pathTemplate: "\"/v1/routers\"", + httpMethod: "GET", + 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); + ProcessGetRoutersResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRouters", + methodName: "GetRoutersAsync", + pathTemplate: "\"/v1/routers\"", + httpMethod: "GET", + 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: "getRouters", + methodName: "GetRoutersAsync", + pathTemplate: "\"/v1/routers\"", + httpMethod: "GET", + 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); + } + + 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); + ProcessGetRoutersResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetRoutersResponse.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.GetRoutersResponse.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(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersById.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersById.g.cs new file mode 100644 index 0000000..ecbbc36 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.GetRoutersById.g.cs @@ -0,0 +1,442 @@ + +#nullable enable + +namespace Runway +{ + public partial class ModelRouterClient + { + + + private static readonly global::Runway.EndPointSecurityRequirement s_GetRoutersByIdSecurityRequirement0 = + 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_GetRoutersByIdSecurityRequirements = + new global::Runway.EndPointSecurityRequirement[] + { s_GetRoutersByIdSecurityRequirement0, + }; + partial void PrepareGetRoutersByIdArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + ref string xRunwayVersion); + partial void PrepareGetRoutersByIdRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + string xRunwayVersion); + partial void ProcessGetRoutersByIdResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessGetRoutersByIdResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieve Model Router
+ /// Retrieve a Model Router configuration by ID. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task GetRoutersByIdAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await GetRoutersByIdAsResponseAsync( + id: id, + xRunwayVersion: xRunwayVersion, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieve Model Router
+ /// Retrieve a Model Router configuration by ID. + ///
+ /// + /// + /// 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 + /// + public async global::System.Threading.Tasks.Task> GetRoutersByIdAsResponseAsync( + global::System.Guid id, + string xRunwayVersion = "2024-11-06", + global::Runway.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareGetRoutersByIdArguments( + httpClient: HttpClient, + id: ref id, + xRunwayVersion: ref xRunwayVersion); + + + var __authorizations = global::Runway.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_GetRoutersByIdSecurityRequirements, + operationName: "GetRoutersByIdAsync"); + + 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/routers/{id}", + 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.Get, + 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()); + + global::Runway.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareGetRoutersByIdRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + xRunwayVersion: xRunwayVersion!); + + 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: "getRoutersById", + methodName: "GetRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "GET", + 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: "getRoutersById", + methodName: "GetRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "GET", + 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: "getRoutersById", + methodName: "GetRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "GET", + 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); + ProcessGetRoutersByIdResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Runway.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Runway.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "getRoutersById", + methodName: "GetRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "GET", + 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: "getRoutersById", + methodName: "GetRoutersByIdAsync", + pathTemplate: "$\"/v1/routers/{id}\"", + httpMethod: "GET", + 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); + } + + 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); + ProcessGetRoutersByIdResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Runway.GetRoutersResponse2.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.GetRoutersResponse2.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(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.ModelRouterClient.g.cs b/src/libs/Runway/Generated/Runway.ModelRouterClient.g.cs new file mode 100644 index 0000000..f1b1bb3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.ModelRouterClient.g.cs @@ -0,0 +1,136 @@ + +#nullable enable + +namespace Runway +{ + /// + /// If no httpClient is provided, a new one will be created.
+ /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + ///
+ public sealed partial class ModelRouterClient : global::Runway.IModelRouterClient, global::System.IDisposable + { + /// + /// + /// + public const string DefaultBaseUrl = "https://api.dev.runwayml.com/"; + + private bool _disposeHttpClient = true; + + /// + public global::System.Net.Http.HttpClient HttpClient { get; } + + /// + public System.Uri? BaseUri => HttpClient.BaseAddress; + + /// + public global::System.Collections.Generic.List Authorizations { get; } + + /// + public bool ReadResponseAsString { get; set; } +#if DEBUG + = true; +#endif + + /// + public global::Runway.AutoSDKClientOptions Options { get; } + /// + /// + /// + public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Runway.SourceGenerationContext.Default; + + + /// + /// Creates a new instance of the ModelRouterClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ModelRouterClient( + global::System.Net.Http.HttpClient? httpClient = null, + global::System.Uri? baseUri = null, + global::System.Collections.Generic.List? authorizations = null, + bool disposeHttpClient = true) : this( + httpClient, + baseUri, + authorizations, + options: null, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the ModelRouterClient with explicit options but no base URL override. + /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ModelRouterClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Collections.Generic.List? authorizations, + global::Runway.AutoSDKClientOptions? options, + bool disposeHttpClient = true) : this( + httpClient, + baseUri: null, + authorizations, + options, + disposeHttpClient: disposeHttpClient) + { + } + + /// + /// Creates a new instance of the ModelRouterClient. + /// If no httpClient is provided, a new one will be created. + /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. + /// + /// The HttpClient instance. If not provided, a new one will be created. + /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. + /// The authorizations to use for the requests. + /// Client-wide request defaults such as headers, query parameters, retries, and timeout. + /// Dispose the HttpClient when the instance is disposed. True by default. + public ModelRouterClient( + global::System.Net.Http.HttpClient? httpClient, + global::System.Uri? baseUri, + global::System.Collections.Generic.List? authorizations, + global::Runway.AutoSDKClientOptions? options, + bool disposeHttpClient = true) + { + + HttpClient = httpClient ?? new global::System.Net.Http.HttpClient(); + HttpClient.BaseAddress ??= baseUri ?? new global::System.Uri(DefaultBaseUrl); + Authorizations = authorizations ?? new global::System.Collections.Generic.List(); + Options = options ?? new global::Runway.AutoSDKClientOptions(); + _disposeHttpClient = disposeHttpClient; + + Initialized(HttpClient); + } + + /// + public void Dispose() + { + if (_disposeHttpClient) + { + HttpClient.Dispose(); + } + } + + partial void Initialized( + global::System.Net.Http.HttpClient client); + partial void PrepareArguments( + global::System.Net.Http.HttpClient client); + partial void PrepareRequest( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpRequestMessage request); + partial void ProcessResponse( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response); + partial void ProcessResponseContent( + global::System.Net.Http.HttpClient client, + global::System.Net.Http.HttpResponseMessage response, + ref string content); + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.Json.g.cs new file mode 100644 index 0000000..56aa2ce --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequest + { + /// + /// 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.CreateGenerateVideoRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequest), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequest? 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.CreateGenerateVideoRequest? 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.CreateGenerateVideoRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequest; + } + + /// + /// 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.CreateGenerateVideoRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs new file mode 100644 index 0000000..c3ebbbf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequest.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequest + { + /// + /// The slug of a saved Model Router config to route this request with. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConfigId { get; set; } + + /// + /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + public bool? DryRun { get; set; } + + /// + /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoRequestInput Input { 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 slug of a saved Model Router config to route this request with. + /// + /// + /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. + /// + /// + /// When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequest( + string configId, + global::Runway.CreateGenerateVideoRequestInput input, + bool? dryRun) + { + this.ConfigId = configId ?? throw new global::System.ArgumentNullException(nameof(configId)); + this.DryRun = dryRun; + this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInput.Json.g.cs new file mode 100644 index 0000000..51830f8 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInput + { + /// + /// 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.CreateGenerateVideoRequestInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInput), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInput? 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.CreateGenerateVideoRequestInput? 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.CreateGenerateVideoRequestInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInput; + } + + /// + /// 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.CreateGenerateVideoRequestInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInput.g.cs new file mode 100644 index 0000000..ea71cd5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInput.g.cs @@ -0,0 +1,169 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it. + /// + public sealed partial class CreateGenerateVideoRequestInput + { + /// + /// A text prompt describing the desired video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptText")] + public string? PromptText { get; set; } + + /// + /// A text description of what to avoid in the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("negativePrompt")] + public string? NegativePrompt { get; set; } + + /// + /// Optional image inputs. Each entry requires a `role`. At most one `first` and one `last` are allowed; multiple `reference` images are allowed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceImages")] + public global::System.Collections.Generic.IList? ReferenceImages { get; set; } + + /// + /// Optional video inputs. Each entry requires a `role`. Use `source` for video-to-video; use `reference` for additional context videos (only models that support them remain eligible). At most one `source` is allowed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceVideos")] + public global::System.Collections.Generic.IList? ReferenceVideos { get; set; } + + /// + /// Optional audio inputs for the generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("referenceAudio")] + public global::System.Collections.Generic.IList? ReferenceAudio { get; set; } + + /// + /// Timed guidance images for video restyle. Requires a source video; unsupported models are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("keyframes")] + public global::System.Collections.Generic.IList>? Keyframes { get; set; } + + /// + /// Desired duration of the output video, in seconds. Unsupported values exclude models; with a source video, V2V duration support applies. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public int? Duration { get; set; } + + /// + /// Desired aspect ratio. Models that do not support the requested aspect are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputAspectRatioJsonConverter))] + public global::Runway.CreateGenerateVideoRequestInputAspectRatio? AspectRatio { get; set; } + + /// + /// Desired output resolution tier. Models that do not support the requested tier are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputResolutionJsonConverter))] + public global::Runway.CreateGenerateVideoRequestInputResolution? Resolution { get; set; } + + /// + /// Whether to generate native audio with the video. When true, only models that output audio remain eligible; when false, silent models and models with an audio toggle remain eligible (always-on native-audio models are excluded). When omitted, the selected model’s default applies. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public bool? Audio { get; set; } + + /// + /// A seed for reproducible generation. Random if omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } + + /// + /// Settings that affect the behavior of the content moderation system. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contentModeration")] + public global::Runway.CreateGenerateVideoRequestInputContentModeration? ContentModeration { 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 text prompt describing the desired video. + /// + /// + /// A text description of what to avoid in the output. + /// + /// + /// Optional image inputs. Each entry requires a `role`. At most one `first` and one `last` are allowed; multiple `reference` images are allowed. + /// + /// + /// Optional video inputs. Each entry requires a `role`. Use `source` for video-to-video; use `reference` for additional context videos (only models that support them remain eligible). At most one `source` is allowed. + /// + /// + /// Optional audio inputs for the generation. + /// + /// + /// Timed guidance images for video restyle. Requires a source video; unsupported models are excluded. + /// + /// + /// Desired duration of the output video, in seconds. Unsupported values exclude models; with a source video, V2V duration support applies. + /// + /// + /// Desired aspect ratio. Models that do not support the requested aspect are excluded. + /// + /// + /// Desired output resolution tier. Models that do not support the requested tier are excluded. + /// + /// + /// Whether to generate native audio with the video. When true, only models that output audio remain eligible; when false, silent models and models with an audio toggle remain eligible (always-on native-audio models are excluded). When omitted, the selected model’s default applies. + /// + /// + /// A seed for reproducible generation. Random if omitted. + /// + /// + /// Settings that affect the behavior of the content moderation system. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequestInput( + string? promptText, + string? negativePrompt, + global::System.Collections.Generic.IList? referenceImages, + global::System.Collections.Generic.IList? referenceVideos, + global::System.Collections.Generic.IList? referenceAudio, + global::System.Collections.Generic.IList>? keyframes, + int? duration, + global::Runway.CreateGenerateVideoRequestInputAspectRatio? aspectRatio, + global::Runway.CreateGenerateVideoRequestInputResolution? resolution, + bool? audio, + int? seed, + global::Runway.CreateGenerateVideoRequestInputContentModeration? contentModeration) + { + this.PromptText = promptText; + this.NegativePrompt = negativePrompt; + this.ReferenceImages = referenceImages; + this.ReferenceVideos = referenceVideos; + this.ReferenceAudio = referenceAudio; + this.Keyframes = keyframes; + this.Duration = duration; + this.AspectRatio = aspectRatio; + this.Resolution = resolution; + this.Audio = audio; + this.Seed = seed; + this.ContentModeration = contentModeration; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputAspectRatio.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputAspectRatio.g.cs new file mode 100644 index 0000000..9952e15 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputAspectRatio.g.cs @@ -0,0 +1,75 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Desired aspect ratio. Models that do not support the requested aspect are excluded. + /// + public enum CreateGenerateVideoRequestInputAspectRatio + { + /// + /// + /// + x16_9, + /// + /// + /// + x1_1, + /// + /// + /// + x21_9, + /// + /// + /// + x3_4, + /// + /// + /// + x4_3, + /// + /// + /// + x9_16, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoRequestInputAspectRatioExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoRequestInputAspectRatio value) + { + return value switch + { + CreateGenerateVideoRequestInputAspectRatio.x16_9 => "16:9", + CreateGenerateVideoRequestInputAspectRatio.x1_1 => "1:1", + CreateGenerateVideoRequestInputAspectRatio.x21_9 => "21:9", + CreateGenerateVideoRequestInputAspectRatio.x3_4 => "3:4", + CreateGenerateVideoRequestInputAspectRatio.x4_3 => "4:3", + CreateGenerateVideoRequestInputAspectRatio.x9_16 => "9:16", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoRequestInputAspectRatio? ToEnum(string value) + { + return value switch + { + "16:9" => CreateGenerateVideoRequestInputAspectRatio.x16_9, + "1:1" => CreateGenerateVideoRequestInputAspectRatio.x1_1, + "21:9" => CreateGenerateVideoRequestInputAspectRatio.x21_9, + "3:4" => CreateGenerateVideoRequestInputAspectRatio.x3_4, + "4:3" => CreateGenerateVideoRequestInputAspectRatio.x4_3, + "9:16" => CreateGenerateVideoRequestInputAspectRatio.x9_16, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModeration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModeration.Json.g.cs new file mode 100644 index 0000000..c3ead16 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModeration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputContentModeration + { + /// + /// 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.CreateGenerateVideoRequestInputContentModeration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputContentModeration), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputContentModeration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputContentModeration? 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.CreateGenerateVideoRequestInputContentModeration? 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.CreateGenerateVideoRequestInputContentModeration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputContentModeration; + } + + /// + /// 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.CreateGenerateVideoRequestInputContentModeration.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModeration.g.cs new file mode 100644 index 0000000..eb6ac5f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModeration.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Settings that affect the behavior of the content moderation system. + /// + public sealed partial class CreateGenerateVideoRequestInputContentModeration + { + /// + /// When set to `low`, the content moderation system will be less strict about preventing generations that include recognizable public figures. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("publicFigureThreshold")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdJsonConverter))] + public global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? PublicFigureThreshold { 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. + /// + /// + /// When set to `low`, the content moderation system will be less strict about preventing generations that include recognizable public figures. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequestInputContentModeration( + global::Runway.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? publicFigureThreshold) + { + this.PublicFigureThreshold = publicFigureThreshold; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputContentModeration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs new file mode 100644 index 0000000..a5ec454 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When set to `low`, the content moderation system will be less strict about preventing generations that include recognizable public figures. + /// + public enum CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold + { + /// + /// + /// + Auto, + /// + /// + /// + Low, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoRequestInputContentModerationPublicFigureThresholdExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold value) + { + return value switch + { + CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.Auto => "auto", + CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.Low => "low", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold? ToEnum(string value) + { + return value switch + { + "auto" => CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.Auto, + "low" => CreateGenerateVideoRequestInputContentModerationPublicFigureThreshold.Low, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1.Json.g.cs new file mode 100644 index 0000000..39f0233 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant1 + { + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1? 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.CreateGenerateVideoRequestInputKeyframeVariant1? 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.CreateGenerateVideoRequestInputKeyframeVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1; + } + + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant1.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1.g.cs new file mode 100644 index 0000000..b2c87a7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant1 + { + /// + /// 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; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Seconds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("range")] + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? Range { 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 CreateGenerateVideoRequestInputKeyframeVariant1( + string uri, + double seconds, + global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? range) + { + this.Uri = uri; + this.Seconds = seconds; + this.Range = range; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputKeyframeVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1Range.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1Range.Json.g.cs new file mode 100644 index 0000000..ffbb8ec --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1Range.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant1Range + { + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant1Range? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range? 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.CreateGenerateVideoRequestInputKeyframeVariant1Range? 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.CreateGenerateVideoRequestInputKeyframeVariant1Range), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant1Range; + } + + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant1Range.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1Range.g.cs new file mode 100644 index 0000000..edd2dba --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant1Range.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant1Range + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StartSeconds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end_seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int EndSeconds { 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 CreateGenerateVideoRequestInputKeyframeVariant1Range( + int startSeconds, + int endSeconds) + { + this.StartSeconds = startSeconds; + this.EndSeconds = endSeconds; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputKeyframeVariant1Range() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2.Json.g.cs new file mode 100644 index 0000000..64fa96a --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant2 + { + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2? 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.CreateGenerateVideoRequestInputKeyframeVariant2? 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.CreateGenerateVideoRequestInputKeyframeVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2; + } + + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2.g.cs new file mode 100644 index 0000000..0e120bf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant2 + { + /// + /// 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; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double At { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("range")] + public global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? Range { 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 CreateGenerateVideoRequestInputKeyframeVariant2( + string uri, + double at, + global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? range) + { + this.Uri = uri; + this.At = at; + this.Range = range; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputKeyframeVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2Range.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2Range.Json.g.cs new file mode 100644 index 0000000..4007d9f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2Range.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant2Range + { + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant2Range? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range? 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.CreateGenerateVideoRequestInputKeyframeVariant2Range? 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.CreateGenerateVideoRequestInputKeyframeVariant2Range), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputKeyframeVariant2Range; + } + + /// + /// 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.CreateGenerateVideoRequestInputKeyframeVariant2Range.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2Range.g.cs new file mode 100644 index 0000000..e1d098d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputKeyframeVariant2Range.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputKeyframeVariant2Range + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("start_seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int StartSeconds { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("end_seconds")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int EndSeconds { 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 CreateGenerateVideoRequestInputKeyframeVariant2Range( + int startSeconds, + int endSeconds) + { + this.StartSeconds = startSeconds; + this.EndSeconds = endSeconds; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputKeyframeVariant2Range() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceAudioItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceAudioItem.Json.g.cs new file mode 100644 index 0000000..220f4c3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceAudioItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputReferenceAudioItem + { + /// + /// 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.CreateGenerateVideoRequestInputReferenceAudioItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem? 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.CreateGenerateVideoRequestInputReferenceAudioItem? 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.CreateGenerateVideoRequestInputReferenceAudioItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputReferenceAudioItem; + } + + /// + /// 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.CreateGenerateVideoRequestInputReferenceAudioItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceAudioItem.g.cs new file mode 100644 index 0000000..9e649d5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceAudioItem.g.cs @@ -0,0 +1,50 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputReferenceAudioItem + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.
+ /// Example: https://example.com/audio.mp3 + ///
+ /// https://example.com/audio.mp3 + [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 audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.
+ /// Example: https://example.com/audio.mp3 + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequestInputReferenceAudioItem( + string uri) + { + this.Uri = uri; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputReferenceAudioItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImage.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImage.Json.g.cs new file mode 100644 index 0000000..51dbadc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputReferenceImage + { + /// + /// 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.CreateGenerateVideoRequestInputReferenceImage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputReferenceImage), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputReferenceImage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputReferenceImage? 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.CreateGenerateVideoRequestInputReferenceImage? 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.CreateGenerateVideoRequestInputReferenceImage), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputReferenceImage; + } + + /// + /// 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.CreateGenerateVideoRequestInputReferenceImage.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImage.g.cs new file mode 100644 index 0000000..73a019d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImage.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputReferenceImage + { + /// + /// 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; } + + /// + /// How the image is used. `first` is the starting frame; `last` is an end frame; `reference` is additional image context. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceImageRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoRequestInputReferenceImageRole Role { 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 + /// + /// + /// How the image is used. `first` is the starting frame; `last` is an end frame; `reference` is additional image context. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequestInputReferenceImage( + string uri, + global::Runway.CreateGenerateVideoRequestInputReferenceImageRole role) + { + this.Uri = uri; + this.Role = role; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputReferenceImage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImageRole.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImageRole.g.cs new file mode 100644 index 0000000..a6c037d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceImageRole.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the image is used. `first` is the starting frame; `last` is an end frame; `reference` is additional image context. + /// + public enum CreateGenerateVideoRequestInputReferenceImageRole + { + /// + /// + /// + First, + /// + /// + /// + Last, + /// + /// + /// + Reference, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoRequestInputReferenceImageRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoRequestInputReferenceImageRole value) + { + return value switch + { + CreateGenerateVideoRequestInputReferenceImageRole.First => "first", + CreateGenerateVideoRequestInputReferenceImageRole.Last => "last", + CreateGenerateVideoRequestInputReferenceImageRole.Reference => "reference", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoRequestInputReferenceImageRole? ToEnum(string value) + { + return value switch + { + "first" => CreateGenerateVideoRequestInputReferenceImageRole.First, + "last" => CreateGenerateVideoRequestInputReferenceImageRole.Last, + "reference" => CreateGenerateVideoRequestInputReferenceImageRole.Reference, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideo.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideo.Json.g.cs new file mode 100644 index 0000000..b962433 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideo.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoRequestInputReferenceVideo + { + /// + /// 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.CreateGenerateVideoRequestInputReferenceVideo? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoRequestInputReferenceVideo), + jsonSerializerContext) as global::Runway.CreateGenerateVideoRequestInputReferenceVideo; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoRequestInputReferenceVideo? 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.CreateGenerateVideoRequestInputReferenceVideo? 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.CreateGenerateVideoRequestInputReferenceVideo), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoRequestInputReferenceVideo; + } + + /// + /// 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.CreateGenerateVideoRequestInputReferenceVideo.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideo.g.cs new file mode 100644 index 0000000..fabd351 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideo.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoRequestInputReferenceVideo + { + /// + /// A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.
+ /// Example: https://example.com/video.mp4 + ///
+ /// https://example.com/video.mp4 + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } + + /// + /// How the video is used. `source` is the primary video-to-video input; `reference` is additional video context. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoRequestInputReferenceVideoRoleJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole Role { 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 video. See [our docs](/assets/inputs#videos) on video inputs for more information.
+ /// Example: https://example.com/video.mp4 + /// + /// + /// How the video is used. `source` is the primary video-to-video input; `reference` is additional video context. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoRequestInputReferenceVideo( + string uri, + global::Runway.CreateGenerateVideoRequestInputReferenceVideoRole role) + { + this.Uri = uri; + this.Role = role; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoRequestInputReferenceVideo() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs new file mode 100644 index 0000000..2172299 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputReferenceVideoRole.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// How the video is used. `source` is the primary video-to-video input; `reference` is additional video context. + /// + public enum CreateGenerateVideoRequestInputReferenceVideoRole + { + /// + /// + /// + Reference, + /// + /// + /// + Source, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoRequestInputReferenceVideoRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoRequestInputReferenceVideoRole value) + { + return value switch + { + CreateGenerateVideoRequestInputReferenceVideoRole.Reference => "reference", + CreateGenerateVideoRequestInputReferenceVideoRole.Source => "source", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoRequestInputReferenceVideoRole? ToEnum(string value) + { + return value switch + { + "reference" => CreateGenerateVideoRequestInputReferenceVideoRole.Reference, + "source" => CreateGenerateVideoRequestInputReferenceVideoRole.Source, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputResolution.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputResolution.g.cs new file mode 100644 index 0000000..6347895 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoRequestInputResolution.g.cs @@ -0,0 +1,63 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Desired output resolution tier. Models that do not support the requested tier are excluded. + /// + public enum CreateGenerateVideoRequestInputResolution + { + /// + /// + /// + x1080p, + /// + /// + /// + x480p, + /// + /// + /// + x4k, + /// + /// + /// + x720p, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoRequestInputResolutionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoRequestInputResolution value) + { + return value switch + { + CreateGenerateVideoRequestInputResolution.x1080p => "1080p", + CreateGenerateVideoRequestInputResolution.x480p => "480p", + CreateGenerateVideoRequestInputResolution.x4k => "4k", + CreateGenerateVideoRequestInputResolution.x720p => "720p", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoRequestInputResolution? ToEnum(string value) + { + return value switch + { + "1080p" => CreateGenerateVideoRequestInputResolution.x1080p, + "480p" => CreateGenerateVideoRequestInputResolution.x480p, + "4k" => CreateGenerateVideoRequestInputResolution.x4k, + "720p" => CreateGenerateVideoRequestInputResolution.x720p, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs new file mode 100644 index 0000000..e2abf0c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public readonly partial struct CreateGenerateVideoResponse + { + /// + /// 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.CreateGenerateVideoResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponse), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse?; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponse? 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.CreateGenerateVideoResponse? 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.CreateGenerateVideoResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse?; + } + + /// + /// 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.CreateGenerateVideoResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs new file mode 100644 index 0000000..b6fda2e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse.g.cs @@ -0,0 +1,303 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public readonly partial struct CreateGenerateVideoResponse : global::System.IEquatable + { + /// + /// + /// + public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? DryRun { get; } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? False { get; init; } +#else + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? False { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(False))] +#endif + public bool IsFalse => False != null; + + /// + /// + /// + public bool TryPickFalse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) + { + value = False; + return IsFalse; + } + + /// + /// + /// + public global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated PickFalse() => IsFalse + ? False! + : throw new global::System.InvalidOperationException($"Expected union variant 'False' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? True { get; init; } +#else + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? True { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(True))] +#endif + public bool IsTrue => True != null; + + /// + /// + /// + public bool TryPickTrue( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) + { + value = True; + return IsTrue; + } + + /// + /// + /// + public global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun PickTrue() => IsTrue + ? True! + : throw new global::System.InvalidOperationException($"Expected union variant 'True' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated value) => new CreateGenerateVideoResponse((global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated?(CreateGenerateVideoResponse @this) => @this.False; + + /// + /// + /// + public CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) + { + False = value; + } + + /// + /// + /// + public static CreateGenerateVideoResponse FromFalse(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? value) => new CreateGenerateVideoResponse(value); + + /// + /// + /// + public static implicit operator CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun value) => new CreateGenerateVideoResponse((global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun?)value); + + /// + /// + /// + public static implicit operator global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun?(CreateGenerateVideoResponse @this) => @this.True; + + /// + /// + /// + public CreateGenerateVideoResponse(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) + { + True = value; + } + + /// + /// + /// + public static CreateGenerateVideoResponse FromTrue(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? value) => new CreateGenerateVideoResponse(value); + + /// + /// + /// + public CreateGenerateVideoResponse( + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? dryRun, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? @false, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? @true + ) + { + DryRun = dryRun; + + False = @false; + True = @true; + } + + /// + /// + /// + public object? Object => + True as object ?? + False as object + ; + + /// + /// + /// + public override string? ToString() => + False?.ToString() ?? + True?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsFalse && !IsTrue || !IsFalse && IsTrue; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? @false = null, + global::System.Func? @true = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFalse && @false != null) + { + return @false(False!); + } + else if (IsTrue && @true != null) + { + return @true(True!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? @false = null, + + global::System.Action? @true = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFalse) + { + @false?.Invoke(False!); + } + else if (IsTrue) + { + @true?.Invoke(True!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? @false = null, + global::System.Action? @true = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsFalse) + { + @false?.Invoke(False!); + } + else if (IsTrue) + { + @true?.Invoke(True!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + False, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), + True, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateGenerateVideoResponse other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(False, other.False) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(True, other.True) + ; + } + + /// + /// + /// + public static bool operator ==(CreateGenerateVideoResponse obj1, CreateGenerateVideoResponse obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateGenerateVideoResponse obj1, CreateGenerateVideoResponse obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateGenerateVideoResponse o && Equals(o); + } + } +} diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse2.Json.g.cs new file mode 100644 index 0000000..a18e861 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponse2 + { + /// + /// 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.CreateGenerateVideoResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponse2), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponse2? 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.CreateGenerateVideoResponse2? 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.CreateGenerateVideoResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse2; + } + + /// + /// 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.CreateGenerateVideoResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse2.g.cs new file mode 100644 index 0000000..c71efd3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse2.g.cs @@ -0,0 +1,79 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponse2 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// + /// + /// "no_eligible_model" + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string Code { get; set; } = "no_eligible_model"; + + /// + /// The hard-filter pipeline in execution order with survivor counts at each stage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pipeline")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Pipeline { get; set; } + + /// + /// The filter(s) that reduced the eligible pool to zero. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("emptiedBy")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList EmptiedBy { 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 hard-filter pipeline in execution order with survivor counts at each stage. + /// + /// + /// The filter(s) that reduced the eligible pool to zero. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponse2( + string error, + global::System.Collections.Generic.IList pipeline, + global::System.Collections.Generic.IList emptiedBy, + string code = "no_eligible_model") + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Code = code; + this.Pipeline = pipeline ?? throw new global::System.ArgumentNullException(nameof(pipeline)); + this.EmptiedBy = emptiedBy ?? throw new global::System.ArgumentNullException(nameof(emptiedBy)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse3.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse3.Json.g.cs new file mode 100644 index 0000000..6e32c54 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse3.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponse3 + { + /// + /// 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.CreateGenerateVideoResponse3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponse3), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponse3; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponse3? 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.CreateGenerateVideoResponse3? 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.CreateGenerateVideoResponse3), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponse3; + } + + /// + /// 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.CreateGenerateVideoResponse3.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse3.g.cs new file mode 100644 index 0000000..5f45dc9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponse3.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponse3 + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Error { get; set; } + + /// + /// + /// + /// "router_config_not_found" + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string Code { get; set; } = "router_config_not_found"; + + /// + /// 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 CreateGenerateVideoResponse3( + string error, + string code = "router_config_not_found") + { + this.Error = error ?? throw new global::System.ArgumentNullException(nameof(error)); + this.Code = code; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponse3() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateGenerateVideoResponse3 FromError(string error) + { + return new CreateGenerateVideoResponse3 + { + Error = error, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs new file mode 100644 index 0000000..f07bf19 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseDiscriminator + { + /// + /// 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.CreateGenerateVideoResponseDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseDiscriminator), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseDiscriminator; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseDiscriminator? 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.CreateGenerateVideoResponseDiscriminator? 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.CreateGenerateVideoResponseDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseDiscriminator; + } + + /// + /// 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.CreateGenerateVideoResponseDiscriminator.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs new file mode 100644 index 0000000..c278a18 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponseDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseDiscriminatorDryRunJsonConverter))] + public global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? DryRun { 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 CreateGenerateVideoResponseDiscriminator( + global::Runway.CreateGenerateVideoResponseDiscriminatorDryRun? dryRun) + { + this.DryRun = dryRun; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs new file mode 100644 index 0000000..57ad4e3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseDiscriminatorDryRun.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateGenerateVideoResponseDiscriminatorDryRun + { + /// + /// + /// + False, + /// + /// + /// + True, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponseDiscriminatorDryRunExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponseDiscriminatorDryRun value) + { + return value switch + { + CreateGenerateVideoResponseDiscriminatorDryRun.False => "False", + CreateGenerateVideoResponseDiscriminatorDryRun.True => "True", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponseDiscriminatorDryRun? ToEnum(string value) + { + return value switch + { + "False" => CreateGenerateVideoResponseDiscriminatorDryRun.False, + "True" => CreateGenerateVideoResponseDiscriminatorDryRun.True, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseEmptiedByItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseEmptiedByItem.g.cs new file mode 100644 index 0000000..7655d65 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseEmptiedByItem.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateGenerateVideoResponseEmptiedByItem + { + /// + /// + /// + AllowDeny, + /// + /// + /// + Capability, + /// + /// + /// + InputSupport, + /// + /// + /// + Price, + /// + /// + /// + PromptLength, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponseEmptiedByItemExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponseEmptiedByItem value) + { + return value switch + { + CreateGenerateVideoResponseEmptiedByItem.AllowDeny => "allow_deny", + CreateGenerateVideoResponseEmptiedByItem.Capability => "capability", + CreateGenerateVideoResponseEmptiedByItem.InputSupport => "input_support", + CreateGenerateVideoResponseEmptiedByItem.Price => "price", + CreateGenerateVideoResponseEmptiedByItem.PromptLength => "prompt_length", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponseEmptiedByItem? ToEnum(string value) + { + return value switch + { + "allow_deny" => CreateGenerateVideoResponseEmptiedByItem.AllowDeny, + "capability" => CreateGenerateVideoResponseEmptiedByItem.Capability, + "input_support" => CreateGenerateVideoResponseEmptiedByItem.InputSupport, + "price" => CreateGenerateVideoResponseEmptiedByItem.Price, + "prompt_length" => CreateGenerateVideoResponseEmptiedByItem.PromptLength, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItem.Json.g.cs new file mode 100644 index 0000000..97b8015 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponsePipelineItem + { + /// + /// 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.CreateGenerateVideoResponsePipelineItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponsePipelineItem), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponsePipelineItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponsePipelineItem? 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.CreateGenerateVideoResponsePipelineItem? 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.CreateGenerateVideoResponsePipelineItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponsePipelineItem; + } + + /// + /// 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.CreateGenerateVideoResponsePipelineItem.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItem.g.cs new file mode 100644 index 0000000..c418a31 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItem.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponsePipelineItem + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponsePipelineItemFilterJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponsePipelineItemFilter Filter { get; set; } + + /// + /// How many models remained eligible after this filter ran. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("remaining")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Remaining { 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. + /// + /// + /// + /// How many models remained eligible after this filter ran. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponsePipelineItem( + global::Runway.CreateGenerateVideoResponsePipelineItemFilter filter, + int remaining) + { + this.Filter = filter; + this.Remaining = remaining; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponsePipelineItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItemFilter.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItemFilter.g.cs new file mode 100644 index 0000000..4f7e6c7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponsePipelineItemFilter.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateGenerateVideoResponsePipelineItemFilter + { + /// + /// + /// + AllowDeny, + /// + /// + /// + Capability, + /// + /// + /// + InputSupport, + /// + /// + /// + Price, + /// + /// + /// + PromptLength, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponsePipelineItemFilterExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponsePipelineItemFilter value) + { + return value switch + { + CreateGenerateVideoResponsePipelineItemFilter.AllowDeny => "allow_deny", + CreateGenerateVideoResponsePipelineItemFilter.Capability => "capability", + CreateGenerateVideoResponsePipelineItemFilter.InputSupport => "input_support", + CreateGenerateVideoResponsePipelineItemFilter.Price => "price", + CreateGenerateVideoResponsePipelineItemFilter.PromptLength => "prompt_length", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponsePipelineItemFilter? ToEnum(string value) + { + return value switch + { + "allow_deny" => CreateGenerateVideoResponsePipelineItemFilter.AllowDeny, + "capability" => CreateGenerateVideoResponsePipelineItemFilter.Capability, + "input_support" => CreateGenerateVideoResponsePipelineItemFilter.InputSupport, + "price" => CreateGenerateVideoResponsePipelineItemFilter.Price, + "prompt_length" => CreateGenerateVideoResponsePipelineItemFilter.PromptLength, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs new file mode 100644 index 0000000..47f6fe5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRun + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRun? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun? 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.CreateGenerateVideoResponseRoutedVideoDryRun? 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.CreateGenerateVideoResponseRoutedVideoDryRun), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRun; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs new file mode 100644 index 0000000..791dc58 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRun.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRun + { + /// + /// + /// + /// true + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + public bool DryRun { get; set; } = true; + + /// + /// Metadata describing which model the router selected and why. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("routing")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting Routing { 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. + /// + /// + /// Metadata describing which model the router selected and why. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRun( + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting routing, + bool dryRun = true) + { + this.DryRun = dryRun; + this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRun() + { + } + + /// + /// Creates a new from its single non-const required field, + /// hardcoding any const discriminator fields. + /// + public static CreateGenerateVideoResponseRoutedVideoDryRun FromRouting(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting routing) + { + return new CreateGenerateVideoResponseRoutedVideoDryRun + { + Routing = routing, + }; + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs new file mode 100644 index 0000000..7ee1d13 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting? 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.CreateGenerateVideoResponseRoutedVideoDryRunRouting? 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.CreateGenerateVideoResponseRoutedVideoDryRunRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRouting; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs new file mode 100644 index 0000000..c954510 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRouting.g.cs @@ -0,0 +1,107 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Metadata describing which model the router selected and why. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRouting + { + /// + /// The public name of the model the router selected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// The provider of the selected model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// The slug of the router config that was applied to this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConfigId { get; set; } + + /// + /// The resolved config settings the router used for this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings ResolvedSettings { get; set; } + + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolvedInput")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput ResolvedInput { get; set; } + + /// + /// Estimated cost, computed against current pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost EstimatedCost { 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 public name of the model the router selected. + /// + /// + /// The provider of the selected model. + /// + /// + /// The slug of the router config that was applied to this request. + /// + /// + /// The resolved config settings the router used for this request. + /// + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + /// + /// Estimated cost, computed against current pricing. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRunRouting( + string model, + string provider, + string configId, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost estimatedCost) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ConfigId = configId ?? throw new global::System.ArgumentNullException(nameof(configId)); + this.ResolvedSettings = resolvedSettings ?? throw new global::System.ArgumentNullException(nameof(resolvedSettings)); + this.ResolvedInput = resolvedInput ?? throw new global::System.ArgumentNullException(nameof(resolvedInput)); + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRunRouting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs new file mode 100644 index 0000000..e1e24ce --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs new file mode 100644 index 0000000..0a3f72f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost + { + /// + /// Estimated cost of the generation in credits. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Credits { 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. + /// + /// + /// Estimated cost of the generation in credits. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs new file mode 100644 index 0000000..7b0e6b2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs new file mode 100644 index 0000000..238e832 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput + { + /// + /// Duration in seconds used for routing display (request value or router default). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Duration { get; set; } + + /// + /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Ratio { get; set; } + + /// + /// Resolution tier from the request, or the router default when omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Resolution { 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. + /// + /// + /// Duration in seconds used for routing display (request value or router default). + /// + /// + /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. + /// + /// + /// Resolution tier from the request, or the router default when omitted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput( + double duration, + string ratio, + string resolution) + { + this.Duration = duration; + this.Ratio = ratio ?? throw new global::System.ArgumentNullException(nameof(ratio)); + this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs new file mode 100644 index 0000000..18aab1d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs new file mode 100644 index 0000000..80affbb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolved config settings the router used for this request. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings + { + /// + /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("priceCeiling")] + public double? PriceCeiling { 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 single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings( + global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor optimizeFor, + double? priceCeiling) + { + this.OptimizeFor = optimizeFor; + this.PriceCeiling = priceCeiling; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..9c9173b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + public enum CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 0000000..0ab7722 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs new file mode 100644 index 0000000..8040d10 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoDryRunRoutingResolvedSettingsPriceCeiling + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs new file mode 100644 index 0000000..0220051 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreated + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreated? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated? 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.CreateGenerateVideoResponseRoutedVideoTaskCreated? 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.CreateGenerateVideoResponseRoutedVideoTaskCreated), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreated; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs new file mode 100644 index 0000000..826d94f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreated.g.cs @@ -0,0 +1,69 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreated + { + /// + /// + /// + /// false + [global::System.Text.Json.Serialization.JsonPropertyName("dryRun")] + public bool DryRun { get; set; } = false; + + /// + /// The ID of the created task. Poll GET /v1/tasks/:id for the result. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Metadata describing which model the router selected and why. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("routing")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting Routing { 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 created task. Poll GET /v1/tasks/:id for the result. + /// + /// + /// Metadata describing which model the router selected and why. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreated( + global::System.Guid id, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting routing, + bool dryRun = false) + { + this.DryRun = dryRun; + this.Id = id; + this.Routing = routing ?? throw new global::System.ArgumentNullException(nameof(routing)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreated() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs new file mode 100644 index 0000000..4576718 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs new file mode 100644 index 0000000..90d2c05 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting.g.cs @@ -0,0 +1,107 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Metadata describing which model the router selected and why. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting + { + /// + /// The public name of the model the router selected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Model { get; set; } + + /// + /// The provider of the selected model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Provider { get; set; } + + /// + /// The slug of the router config that was applied to this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("configId")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string ConfigId { get; set; } + + /// + /// The resolved config settings the router used for this request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolvedSettings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings ResolvedSettings { get; set; } + + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolvedInput")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput ResolvedInput { get; set; } + + /// + /// Estimated cost, computed against current pricing. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("estimatedCost")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost EstimatedCost { 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 public name of the model the router selected. + /// + /// + /// The provider of the selected model. + /// + /// + /// The slug of the router config that was applied to this request. + /// + /// + /// The resolved config settings the router used for this request. + /// + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + /// + /// Estimated cost, computed against current pricing. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting( + string model, + string provider, + string configId, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings resolvedSettings, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput resolvedInput, + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost estimatedCost) + { + this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); + this.Provider = provider ?? throw new global::System.ArgumentNullException(nameof(provider)); + this.ConfigId = configId ?? throw new global::System.ArgumentNullException(nameof(configId)); + this.ResolvedSettings = resolvedSettings ?? throw new global::System.ArgumentNullException(nameof(resolvedSettings)); + this.ResolvedInput = resolvedInput ?? throw new global::System.ArgumentNullException(nameof(resolvedInput)); + this.EstimatedCost = estimatedCost ?? throw new global::System.ArgumentNullException(nameof(estimatedCost)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRouting() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs new file mode 100644 index 0000000..fe3ca3d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs new file mode 100644 index 0000000..faaccf9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Estimated cost, computed against current pricing. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost + { + /// + /// Estimated cost of the generation in credits. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credits")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Credits { 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. + /// + /// + /// Estimated cost of the generation in credits. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost( + double credits) + { + this.Credits = credits; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingEstimatedCost() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs new file mode 100644 index 0000000..4b9733f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs new file mode 100644 index 0000000..7771d46 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput.g.cs @@ -0,0 +1,71 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput + { + /// + /// Duration in seconds used for routing display (request value or router default). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double Duration { get; set; } + + /// + /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ratio")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Ratio { get; set; } + + /// + /// Resolution tier from the request, or the router default when omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Resolution { 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. + /// + /// + /// Duration in seconds used for routing display (request value or router default). + /// + /// + /// Concrete output ratio derived from aspectRatio (e.g. "1280:720"), or the router default. + /// + /// + /// Resolution tier from the request, or the router default when omitted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput( + double duration, + string ratio, + string resolution) + { + this.Duration = duration; + this.Ratio = ratio ?? throw new global::System.ArgumentNullException(nameof(ratio)); + this.Resolution = resolution ?? throw new global::System.ArgumentNullException(nameof(resolution)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedInput() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs new file mode 100644 index 0000000..1bc600e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs new file mode 100644 index 0000000..9668491 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings.g.cs @@ -0,0 +1,59 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The resolved config settings the router used for this request. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings + { + /// + /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor OptimizeFor { get; set; } + + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("priceCeiling")] + public double? PriceCeiling { 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 single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings( + global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor optimizeFor, + double? priceCeiling) + { + this.OptimizeFor = optimizeFor; + this.PriceCeiling = priceCeiling; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..f2b10b0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The single optimization preference the config selected, used as the soft weighting when scoring eligible models. + /// + public enum CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor + { + /// + /// + /// + Cost, + /// + /// + /// + Latency, + /// + /// + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor value) + { + return value switch + { + CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost => "cost", + CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency => "latency", + CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Cost, + "latency" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Latency, + "quality" => CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs new file mode 100644 index 0000000..7a85b45 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling + { + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling? 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling; + } + + /// + /// 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.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs new file mode 100644 index 0000000..70bcef1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling. + /// + public sealed partial class CreateGenerateVideoResponseRoutedVideoTaskCreatedRoutingResolvedSettingsPriceCeiling + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs index 8fa5763..8a51077 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseModel.g.cs @@ -187,6 +187,10 @@ public enum CreateOrganizationUsageResponseModel /// /// /// + Seedream5Lite, + /// + /// + /// Seedream5Pro, /// /// @@ -262,6 +266,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val CreateOrganizationUsageResponseModel.Seedance2 => "seedance2", CreateOrganizationUsageResponseModel.Seedance2Fast => "seedance2_fast", CreateOrganizationUsageResponseModel.Seedance2Mini => "seedance2_mini", + CreateOrganizationUsageResponseModel.Seedream5Lite => "seedream5_lite", CreateOrganizationUsageResponseModel.Seedream5Pro => "seedream5_pro", CreateOrganizationUsageResponseModel.Veo3 => "veo3", CreateOrganizationUsageResponseModel.Veo31 => "veo3.1", @@ -321,6 +326,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseModel val "seedance2" => CreateOrganizationUsageResponseModel.Seedance2, "seedance2_fast" => CreateOrganizationUsageResponseModel.Seedance2Fast, "seedance2_mini" => CreateOrganizationUsageResponseModel.Seedance2Mini, + "seedream5_lite" => CreateOrganizationUsageResponseModel.Seedream5Lite, "seedream5_pro" => CreateOrganizationUsageResponseModel.Seedream5Pro, "veo3" => CreateOrganizationUsageResponseModel.Veo3, "veo3.1" => CreateOrganizationUsageResponseModel.Veo31, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs index c917399..4a6b750 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateOrganizationUsageResponseResultUsedCreditModel.g.cs @@ -187,6 +187,10 @@ public enum CreateOrganizationUsageResponseResultUsedCreditModel /// /// /// + Seedream5Lite, + /// + /// + /// Seedream5Pro, /// /// @@ -262,6 +266,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2 => "seedance2", CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Fast => "seedance2_fast", CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Mini => "seedance2_mini", + CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Lite => "seedream5_lite", CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Pro => "seedream5_pro", CreateOrganizationUsageResponseResultUsedCreditModel.Veo3 => "veo3", CreateOrganizationUsageResponseResultUsedCreditModel.Veo31 => "veo3.1", @@ -321,6 +326,7 @@ public static string ToValueString(this CreateOrganizationUsageResponseResultUse "seedance2" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2, "seedance2_fast" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Fast, "seedance2_mini" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedance2Mini, + "seedream5_lite" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Lite, "seedream5_pro" => CreateOrganizationUsageResponseResultUsedCreditModel.Seedream5Pro, "veo3" => CreateOrganizationUsageResponseResultUsedCreditModel.Veo3, "veo3.1" => CreateOrganizationUsageResponseResultUsedCreditModel.Veo31, diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequest.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequest.Json.g.cs new file mode 100644 index 0000000..286fba7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersRequest + { + /// + /// 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.CreateRoutersRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersRequest), + jsonSerializerContext) as global::Runway.CreateRoutersRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersRequest? 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.CreateRoutersRequest? 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.CreateRoutersRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersRequest; + } + + /// + /// 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.CreateRoutersRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequest.g.cs new file mode 100644 index 0000000..21617c3 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequest.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRoutersRequest + { + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// Optional human-readable display name for this router. Defaults to the slug when omitted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// An optional Model Router description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + public global::Runway.CreateRoutersRequestSettings? Settings { 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. + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Optional human-readable display name for this router. Defaults to the slug when omitted. + /// + /// + /// An optional Model Router description. + /// + /// + /// Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersRequest( + string slug, + string? name, + string? description, + global::Runway.CreateRoutersRequestSettings? settings) + { + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Name = name; + this.Description = description; + this.Settings = settings; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.Json.g.cs new file mode 100644 index 0000000..3a6204e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersRequestSettings + { + /// + /// 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.CreateRoutersRequestSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersRequestSettings), + jsonSerializerContext) as global::Runway.CreateRoutersRequestSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersRequestSettings? 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.CreateRoutersRequestSettings? 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.CreateRoutersRequestSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersRequestSettings; + } + + /// + /// 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.CreateRoutersRequestSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.g.cs new file mode 100644 index 0000000..0dd96fb --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettings.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router. + /// + public sealed partial class CreateRoutersRequestSettings + { + /// + /// Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double? SchemaVersion { get; set; } + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.CreateRoutersRequestSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsOptimizeForJsonConverter))] + public global::Runway.CreateRoutersRequestSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersRequestSettings( + double? schemaVersion, + global::Runway.CreateRoutersRequestSettingsModels? models, + global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.CreateRoutersRequestSettingsOptimizeFor? optimizeFor) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersRequestSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..8c1c3ba --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersRequestSettingsMaxCreditsPerGeneration + { + /// + /// 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.CreateRoutersRequestSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration? 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.CreateRoutersRequestSettingsMaxCreditsPerGeneration? 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.CreateRoutersRequestSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersRequestSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.CreateRoutersRequestSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..3116752 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class CreateRoutersRequestSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 CreateRoutersRequestSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersRequestSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModels.Json.g.cs new file mode 100644 index 0000000..a374a27 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersRequestSettingsModels + { + /// + /// 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.CreateRoutersRequestSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersRequestSettingsModels), + jsonSerializerContext) as global::Runway.CreateRoutersRequestSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersRequestSettingsModels? 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.CreateRoutersRequestSettingsModels? 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.CreateRoutersRequestSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersRequestSettingsModels; + } + + /// + /// 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.CreateRoutersRequestSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModels.g.cs new file mode 100644 index 0000000..b79003c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class CreateRoutersRequestSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersRequestSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRoutersRequestSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 CreateRoutersRequestSettingsModels( + global::Runway.CreateRoutersRequestSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersRequestSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModelsMode.g.cs new file mode 100644 index 0000000..958eb70 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateRoutersRequestSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRoutersRequestSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRoutersRequestSettingsModelsMode value) + { + return value switch + { + CreateRoutersRequestSettingsModelsMode.AllowNewExcept => "allow_new_except", + CreateRoutersRequestSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRoutersRequestSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => CreateRoutersRequestSettingsModelsMode.AllowNewExcept, + "allowlist_only" => CreateRoutersRequestSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..b858cc2 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersRequestSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum CreateRoutersRequestSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRoutersRequestSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRoutersRequestSettingsOptimizeFor value) + { + return value switch + { + CreateRoutersRequestSettingsOptimizeFor.Cost => "cost", + CreateRoutersRequestSettingsOptimizeFor.Latency => "latency", + CreateRoutersRequestSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRoutersRequestSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateRoutersRequestSettingsOptimizeFor.Cost, + "latency" => CreateRoutersRequestSettingsOptimizeFor.Latency, + "quality" => CreateRoutersRequestSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponse.Json.g.cs new file mode 100644 index 0000000..c89ab59 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponse + { + /// + /// 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.CreateRoutersResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponse), + jsonSerializerContext) as global::Runway.CreateRoutersResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponse? 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.CreateRoutersResponse? 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.CreateRoutersResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponse; + } + + /// + /// 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.CreateRoutersResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponse.g.cs new file mode 100644 index 0000000..06a9560 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponse.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRoutersResponse + { + /// + /// The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// An optional Model Router description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRoutersResponseSettings Settings { get; set; } + + /// + /// When the Model Router was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// When the Model Router was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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 Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + /// + /// + /// When the Model Router was created. + /// + /// + /// When the Model Router was last updated. + /// + /// + /// An optional Model Router description. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersResponse( + global::System.Guid id, + string slug, + string name, + int version, + global::Runway.CreateRoutersResponseSettings settings, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string? description) + { + this.Id = id; + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Version = version; + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseDescription.Json.g.cs new file mode 100644 index 0000000..4e74061 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponseDescription + { + /// + /// 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.CreateRoutersResponseDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponseDescription), + jsonSerializerContext) as global::Runway.CreateRoutersResponseDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponseDescription? 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.CreateRoutersResponseDescription? 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.CreateRoutersResponseDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponseDescription; + } + + /// + /// 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.CreateRoutersResponseDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseDescription.g.cs new file mode 100644 index 0000000..6092c30 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An optional Model Router description. + /// + public sealed partial class CreateRoutersResponseDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.Json.g.cs new file mode 100644 index 0000000..23325dd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponseSettings + { + /// + /// 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.CreateRoutersResponseSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponseSettings), + jsonSerializerContext) as global::Runway.CreateRoutersResponseSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponseSettings? 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.CreateRoutersResponseSettings? 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.CreateRoutersResponseSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponseSettings; + } + + /// + /// 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.CreateRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs new file mode 100644 index 0000000..b10a544 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettings.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class CreateRoutersResponseSettings + { + /// + /// Settings JSON schema version used when this snapshot was written. + /// + /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double SchemaVersion { get; set; } = 1; + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.CreateRoutersResponseSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsOptimizeForJsonConverter))] + public global::Runway.CreateRoutersResponseSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + /// + /// Settings JSON schema version used when this snapshot was written. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateRoutersResponseSettings( + global::Runway.CreateRoutersResponseSettingsModels? models, + global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.CreateRoutersResponseSettingsOptimizeFor? optimizeFor, + double schemaVersion = 1) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersResponseSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..3540bfe --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// 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.CreateRoutersResponseSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration? 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.CreateRoutersResponseSettingsMaxCreditsPerGeneration? 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.CreateRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.CreateRoutersResponseSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..2a6e50c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class CreateRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 CreateRoutersResponseSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersResponseSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModels.Json.g.cs new file mode 100644 index 0000000..e3cc273 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class CreateRoutersResponseSettingsModels + { + /// + /// 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.CreateRoutersResponseSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.CreateRoutersResponseSettingsModels), + jsonSerializerContext) as global::Runway.CreateRoutersResponseSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.CreateRoutersResponseSettingsModels? 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.CreateRoutersResponseSettingsModels? 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.CreateRoutersResponseSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.CreateRoutersResponseSettingsModels; + } + + /// + /// 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.CreateRoutersResponseSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModels.g.cs new file mode 100644 index 0000000..8ea5f2b --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class CreateRoutersResponseSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.CreateRoutersResponseSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.CreateRoutersResponseSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 CreateRoutersResponseSettingsModels( + global::Runway.CreateRoutersResponseSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateRoutersResponseSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..969c726 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum CreateRoutersResponseSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRoutersResponseSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRoutersResponseSettingsModelsMode value) + { + return value switch + { + CreateRoutersResponseSettingsModelsMode.AllowNewExcept => "allow_new_except", + CreateRoutersResponseSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRoutersResponseSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => CreateRoutersResponseSettingsModelsMode.AllowNewExcept, + "allowlist_only" => CreateRoutersResponseSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..e46d361 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.CreateRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum CreateRoutersResponseSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateRoutersResponseSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateRoutersResponseSettingsOptimizeFor value) + { + return value switch + { + CreateRoutersResponseSettingsOptimizeFor.Cost => "cost", + CreateRoutersResponseSettingsOptimizeFor.Latency => "latency", + CreateRoutersResponseSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateRoutersResponseSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => CreateRoutersResponseSettingsOptimizeFor.Cost, + "latency" => CreateRoutersResponseSettingsOptimizeFor.Latency, + "quality" => CreateRoutersResponseSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Pro.g.cs b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Pro.g.cs index f62d30a..e793d49 100644 --- a/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Pro.g.cs +++ b/src/libs/Runway/Generated/Runway.Models.CreateTextToImageRequestSeedream5Pro.g.cs @@ -42,6 +42,12 @@ public sealed partial class CreateTextToImageRequestSeedream5Pro [global::System.Text.Json.Serialization.JsonPropertyName("outputCount")] public int? OutputCount { get; set; } + /// + /// When true, enable live web search so the model can use current brand, trend, or event context. Default false for deterministic output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("grounding")] + public bool? Grounding { get; set; } + /// /// /// @@ -73,6 +79,9 @@ public sealed partial class CreateTextToImageRequestSeedream5Pro /// /// The number of images to generate. Increasing this number will affect the number of credits consumed by the generation. /// + /// + /// When true, enable live web search so the model can use current brand, trend, or event context. Default false for deterministic output. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -83,6 +92,7 @@ public CreateTextToImageRequestSeedream5Pro( global::Runway.CreateTextToImageRequestSeedream5ProOutputFormat? outputFormat, global::System.Collections.Generic.IList? referenceImages, int? outputCount, + bool? grounding, string model = "seedream5_pro") { this.PromptText = promptText ?? throw new global::System.ArgumentNullException(nameof(promptText)); @@ -90,6 +100,7 @@ public CreateTextToImageRequestSeedream5Pro( this.OutputFormat = outputFormat; this.ReferenceImages = referenceImages; this.OutputCount = outputCount; + this.Grounding = grounding; this.Model = model; } diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse.Json.g.cs new file mode 100644 index 0000000..952cfec --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponse + { + /// + /// 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.GetRoutersResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponse), + jsonSerializerContext) as global::Runway.GetRoutersResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponse? 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.GetRoutersResponse? 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.GetRoutersResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponse; + } + + /// + /// 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.GetRoutersResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse.g.cs new file mode 100644 index 0000000..e980fad --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse.g.cs @@ -0,0 +1,70 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersResponse + { + /// + /// The list of items for the current page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Data { get; set; } + + /// + /// Whether there are more items available after this page. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("hasMore")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool HasMore { get; set; } + + /// + /// Cursor to use for fetching the next page, or null if there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextCursor")] + public string? NextCursor { 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 list of items for the current page. + /// + /// + /// Whether there are more items available after this page. + /// + /// + /// Cursor to use for fetching the next page, or null if there are no more pages. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponse( + global::System.Collections.Generic.IList data, + bool hasMore, + string? nextCursor) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + this.HasMore = hasMore; + this.NextCursor = nextCursor; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse2.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse2.Json.g.cs new file mode 100644 index 0000000..37183c9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse2.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponse2 + { + /// + /// 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.GetRoutersResponse2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponse2), + jsonSerializerContext) as global::Runway.GetRoutersResponse2; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponse2? 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.GetRoutersResponse2? 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.GetRoutersResponse2), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponse2; + } + + /// + /// 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.GetRoutersResponse2.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse2.g.cs new file mode 100644 index 0000000..a7c84e4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponse2.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersResponse2 + { + /// + /// The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// An optional Model Router description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersResponseSettings Settings { get; set; } + + /// + /// When the Model Router was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// When the Model Router was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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 Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + /// + /// + /// When the Model Router was created. + /// + /// + /// When the Model Router was last updated. + /// + /// + /// An optional Model Router description. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponse2( + global::System.Guid id, + string slug, + string name, + int version, + global::Runway.GetRoutersResponseSettings settings, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string? description) + { + this.Id = id; + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Version = version; + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponse2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItem.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItem.Json.g.cs new file mode 100644 index 0000000..b32ddd4 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItem.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItem + { + /// + /// 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.GetRoutersResponseDataItem? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItem), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItem; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItem? 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.GetRoutersResponseDataItem? 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.GetRoutersResponseDataItem), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItem; + } + + /// + /// 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.GetRoutersResponseDataItem.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItem.g.cs new file mode 100644 index 0000000..761221e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItem.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace Runway +{ + /// + /// A named Model Router configuration. + /// + public sealed partial class GetRoutersResponseDataItem + { + /// + /// The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// An optional Model Router description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersResponseDataItemSettings Settings { get; set; } + + /// + /// When the Model Router was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// When the Model Router was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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 Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + /// + /// + /// When the Model Router was created. + /// + /// + /// When the Model Router was last updated. + /// + /// + /// An optional Model Router description. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponseDataItem( + global::System.Guid id, + string slug, + string name, + int version, + global::Runway.GetRoutersResponseDataItemSettings settings, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string? description) + { + this.Id = id; + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Version = version; + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseDataItem() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemDescription.Json.g.cs new file mode 100644 index 0000000..fbb05ec --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItemDescription + { + /// + /// 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.GetRoutersResponseDataItemDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItemDescription), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItemDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItemDescription? 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.GetRoutersResponseDataItemDescription? 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.GetRoutersResponseDataItemDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItemDescription; + } + + /// + /// 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.GetRoutersResponseDataItemDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemDescription.g.cs new file mode 100644 index 0000000..ab9c944 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An optional Model Router description. + /// + public sealed partial class GetRoutersResponseDataItemDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.Json.g.cs new file mode 100644 index 0000000..89c995c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItemSettings + { + /// + /// 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.GetRoutersResponseDataItemSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItemSettings), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItemSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItemSettings? 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.GetRoutersResponseDataItemSettings? 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.GetRoutersResponseDataItemSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItemSettings; + } + + /// + /// 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.GetRoutersResponseDataItemSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.g.cs new file mode 100644 index 0000000..b5b73ba --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettings.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersResponseDataItemSettings + { + /// + /// Settings JSON schema version used when this snapshot was written. + /// + /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double SchemaVersion { get; set; } = 1; + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.GetRoutersResponseDataItemSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsOptimizeForJsonConverter))] + public global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + /// + /// Settings JSON schema version used when this snapshot was written. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponseDataItemSettings( + global::Runway.GetRoutersResponseDataItemSettingsModels? models, + global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.GetRoutersResponseDataItemSettingsOptimizeFor? optimizeFor, + double schemaVersion = 1) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseDataItemSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..81e0009 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration + { + /// + /// 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.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? 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.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration? 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.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..4da8742 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseDataItemSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModels.Json.g.cs new file mode 100644 index 0000000..dcf7257 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDataItemSettingsModels + { + /// + /// 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.GetRoutersResponseDataItemSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDataItemSettingsModels), + jsonSerializerContext) as global::Runway.GetRoutersResponseDataItemSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDataItemSettingsModels? 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.GetRoutersResponseDataItemSettingsModels? 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.GetRoutersResponseDataItemSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDataItemSettingsModels; + } + + /// + /// 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.GetRoutersResponseDataItemSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModels.g.cs new file mode 100644 index 0000000..e5e048f --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class GetRoutersResponseDataItemSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseDataItemSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersResponseDataItemSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 GetRoutersResponseDataItemSettingsModels( + global::Runway.GetRoutersResponseDataItemSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseDataItemSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModelsMode.g.cs new file mode 100644 index 0000000..65d264e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum GetRoutersResponseDataItemSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersResponseDataItemSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersResponseDataItemSettingsModelsMode value) + { + return value switch + { + GetRoutersResponseDataItemSettingsModelsMode.AllowNewExcept => "allow_new_except", + GetRoutersResponseDataItemSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersResponseDataItemSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => GetRoutersResponseDataItemSettingsModelsMode.AllowNewExcept, + "allowlist_only" => GetRoutersResponseDataItemSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..a8021a7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDataItemSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum GetRoutersResponseDataItemSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersResponseDataItemSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersResponseDataItemSettingsOptimizeFor value) + { + return value switch + { + GetRoutersResponseDataItemSettingsOptimizeFor.Cost => "cost", + GetRoutersResponseDataItemSettingsOptimizeFor.Latency => "latency", + GetRoutersResponseDataItemSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersResponseDataItemSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => GetRoutersResponseDataItemSettingsOptimizeFor.Cost, + "latency" => GetRoutersResponseDataItemSettingsOptimizeFor.Latency, + "quality" => GetRoutersResponseDataItemSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDescription.Json.g.cs new file mode 100644 index 0000000..972b9a5 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseDescription + { + /// + /// 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.GetRoutersResponseDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseDescription), + jsonSerializerContext) as global::Runway.GetRoutersResponseDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseDescription? 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.GetRoutersResponseDescription? 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.GetRoutersResponseDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseDescription; + } + + /// + /// 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.GetRoutersResponseDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDescription.g.cs new file mode 100644 index 0000000..96962aa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An optional Model Router description. + /// + public sealed partial class GetRoutersResponseDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseNextCursor.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseNextCursor.Json.g.cs new file mode 100644 index 0000000..c22cbc6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseNextCursor.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseNextCursor + { + /// + /// 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.GetRoutersResponseNextCursor? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseNextCursor), + jsonSerializerContext) as global::Runway.GetRoutersResponseNextCursor; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseNextCursor? 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.GetRoutersResponseNextCursor? 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.GetRoutersResponseNextCursor), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseNextCursor; + } + + /// + /// 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.GetRoutersResponseNextCursor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseNextCursor.g.cs new file mode 100644 index 0000000..67913ca --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseNextCursor.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Cursor to use for fetching the next page, or null if there are no more pages. + /// + public sealed partial class GetRoutersResponseNextCursor + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.Json.g.cs new file mode 100644 index 0000000..1a5a479 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseSettings + { + /// + /// 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.GetRoutersResponseSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseSettings), + jsonSerializerContext) as global::Runway.GetRoutersResponseSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseSettings? 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.GetRoutersResponseSettings? 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.GetRoutersResponseSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseSettings; + } + + /// + /// 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.GetRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs new file mode 100644 index 0000000..92529c6 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettings.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class GetRoutersResponseSettings + { + /// + /// Settings JSON schema version used when this snapshot was written. + /// + /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double SchemaVersion { get; set; } = 1; + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.GetRoutersResponseSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsOptimizeForJsonConverter))] + public global::Runway.GetRoutersResponseSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + /// + /// Settings JSON schema version used when this snapshot was written. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetRoutersResponseSettings( + global::Runway.GetRoutersResponseSettingsModels? models, + global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.GetRoutersResponseSettingsOptimizeFor? optimizeFor, + double schemaVersion = 1) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..21f9256 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// 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.GetRoutersResponseSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration? 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.GetRoutersResponseSettingsMaxCreditsPerGeneration? 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.GetRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.GetRoutersResponseSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..6689c10 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class GetRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 GetRoutersResponseSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModels.Json.g.cs new file mode 100644 index 0000000..6fff6e0 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class GetRoutersResponseSettingsModels + { + /// + /// 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.GetRoutersResponseSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.GetRoutersResponseSettingsModels), + jsonSerializerContext) as global::Runway.GetRoutersResponseSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.GetRoutersResponseSettingsModels? 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.GetRoutersResponseSettingsModels? 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.GetRoutersResponseSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.GetRoutersResponseSettingsModels; + } + + /// + /// 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.GetRoutersResponseSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModels.g.cs new file mode 100644 index 0000000..234f4b1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class GetRoutersResponseSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.GetRoutersResponseSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.GetRoutersResponseSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 GetRoutersResponseSettingsModels( + global::Runway.GetRoutersResponseSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public GetRoutersResponseSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..4ef9117 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum GetRoutersResponseSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersResponseSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersResponseSettingsModelsMode value) + { + return value switch + { + GetRoutersResponseSettingsModelsMode.AllowNewExcept => "allow_new_except", + GetRoutersResponseSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersResponseSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => GetRoutersResponseSettingsModelsMode.AllowNewExcept, + "allowlist_only" => GetRoutersResponseSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..1199028 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.GetRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum GetRoutersResponseSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetRoutersResponseSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetRoutersResponseSettingsOptimizeFor value) + { + return value switch + { + GetRoutersResponseSettingsOptimizeFor.Cost => "cost", + GetRoutersResponseSettingsOptimizeFor.Latency => "latency", + GetRoutersResponseSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetRoutersResponseSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => GetRoutersResponseSettingsOptimizeFor.Cost, + "latency" => GetRoutersResponseSettingsOptimizeFor.Latency, + "quality" => GetRoutersResponseSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequest.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequest.Json.g.cs new file mode 100644 index 0000000..c86a607 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequest.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequest + { + /// + /// 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.PatchRoutersRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequest), + jsonSerializerContext) as global::Runway.PatchRoutersRequest; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequest? 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.PatchRoutersRequest? 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.PatchRoutersRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequest; + } + + /// + /// 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.PatchRoutersRequest.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequest.g.cs new file mode 100644 index 0000000..d529b6d --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequest.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class PatchRoutersRequest + { + /// + /// Display name. The slug is immutable and cannot be changed after creation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + public global::Runway.PatchRoutersRequestSettings? Settings { 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. + /// + /// + /// Display name. The slug is immutable and cannot be changed after creation. + /// + /// + /// + /// Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersRequest( + string? name, + string? description, + global::Runway.PatchRoutersRequestSettings? settings) + { + this.Name = name; + this.Description = description; + this.Settings = settings; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestDescription.Json.g.cs new file mode 100644 index 0000000..d4b3130 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequestDescription + { + /// + /// 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.PatchRoutersRequestDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequestDescription), + jsonSerializerContext) as global::Runway.PatchRoutersRequestDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequestDescription? 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.PatchRoutersRequestDescription? 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.PatchRoutersRequestDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequestDescription; + } + + /// + /// 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.PatchRoutersRequestDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestDescription.g.cs new file mode 100644 index 0000000..afb6abf --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class PatchRoutersRequestDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.Json.g.cs new file mode 100644 index 0000000..af43850 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequestSettings + { + /// + /// 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.PatchRoutersRequestSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequestSettings), + jsonSerializerContext) as global::Runway.PatchRoutersRequestSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequestSettings? 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.PatchRoutersRequestSettings? 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.PatchRoutersRequestSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequestSettings; + } + + /// + /// 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.PatchRoutersRequestSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs new file mode 100644 index 0000000..9e98de7 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettings.g.cs @@ -0,0 +1,80 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling). + /// + public sealed partial class PatchRoutersRequestSettings + { + /// + /// Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double? SchemaVersion { get; set; } + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.PatchRoutersRequestSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsOptimizeForJsonConverter))] + public global::Runway.PatchRoutersRequestSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersRequestSettings( + double? schemaVersion, + global::Runway.PatchRoutersRequestSettingsModels? models, + global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.PatchRoutersRequestSettingsOptimizeFor? optimizeFor) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersRequestSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..5c07a7e --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequestSettingsMaxCreditsPerGeneration + { + /// + /// 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.PatchRoutersRequestSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration? 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.PatchRoutersRequestSettingsMaxCreditsPerGeneration? 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.PatchRoutersRequestSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequestSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.PatchRoutersRequestSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..5d18bbe --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class PatchRoutersRequestSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 PatchRoutersRequestSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersRequestSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModels.Json.g.cs new file mode 100644 index 0000000..b53a2fc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersRequestSettingsModels + { + /// + /// 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.PatchRoutersRequestSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersRequestSettingsModels), + jsonSerializerContext) as global::Runway.PatchRoutersRequestSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersRequestSettingsModels? 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.PatchRoutersRequestSettingsModels? 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.PatchRoutersRequestSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersRequestSettingsModels; + } + + /// + /// 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.PatchRoutersRequestSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModels.g.cs new file mode 100644 index 0000000..053fa66 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class PatchRoutersRequestSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersRequestSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.PatchRoutersRequestSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 PatchRoutersRequestSettingsModels( + global::Runway.PatchRoutersRequestSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersRequestSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModelsMode.g.cs new file mode 100644 index 0000000..14c1bef --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum PatchRoutersRequestSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PatchRoutersRequestSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PatchRoutersRequestSettingsModelsMode value) + { + return value switch + { + PatchRoutersRequestSettingsModelsMode.AllowNewExcept => "allow_new_except", + PatchRoutersRequestSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PatchRoutersRequestSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => PatchRoutersRequestSettingsModelsMode.AllowNewExcept, + "allowlist_only" => PatchRoutersRequestSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..ce01efc --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersRequestSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum PatchRoutersRequestSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PatchRoutersRequestSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PatchRoutersRequestSettingsOptimizeFor value) + { + return value switch + { + PatchRoutersRequestSettingsOptimizeFor.Cost => "cost", + PatchRoutersRequestSettingsOptimizeFor.Latency => "latency", + PatchRoutersRequestSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PatchRoutersRequestSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => PatchRoutersRequestSettingsOptimizeFor.Cost, + "latency" => PatchRoutersRequestSettingsOptimizeFor.Latency, + "quality" => PatchRoutersRequestSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponse.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponse.Json.g.cs new file mode 100644 index 0000000..67ea4aa --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponse + { + /// + /// 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.PatchRoutersResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponse), + jsonSerializerContext) as global::Runway.PatchRoutersResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponse? 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.PatchRoutersResponse? 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.PatchRoutersResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponse; + } + + /// + /// 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.PatchRoutersResponse.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponse.g.cs new file mode 100644 index 0000000..578d807 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponse.g.cs @@ -0,0 +1,128 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class PatchRoutersResponse + { + /// + /// The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slug")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Slug { get; set; } + + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// An optional Model Router description. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Version { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("settings")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.PatchRoutersResponseSettings Settings { get; set; } + + /// + /// When the Model Router was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("createdAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime CreatedAt { get; set; } + + /// + /// When the Model Router was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updatedAt")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.DateTime UpdatedAt { 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 Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests. + /// + /// + /// Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier. + /// + /// + /// Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests. + /// + /// + /// Current settings version. Increments when settings change; name and description updates do not create a new version. + /// + /// + /// + /// When the Model Router was created. + /// + /// + /// When the Model Router was last updated. + /// + /// + /// An optional Model Router description. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersResponse( + global::System.Guid id, + string slug, + string name, + int version, + global::Runway.PatchRoutersResponseSettings settings, + global::System.DateTime createdAt, + global::System.DateTime updatedAt, + string? description) + { + this.Id = id; + this.Slug = slug ?? throw new global::System.ArgumentNullException(nameof(slug)); + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.Description = description; + this.Version = version; + this.Settings = settings ?? throw new global::System.ArgumentNullException(nameof(settings)); + this.CreatedAt = createdAt; + this.UpdatedAt = updatedAt; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseDescription.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseDescription.Json.g.cs new file mode 100644 index 0000000..6d1ff87 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseDescription.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponseDescription + { + /// + /// 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.PatchRoutersResponseDescription? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponseDescription), + jsonSerializerContext) as global::Runway.PatchRoutersResponseDescription; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponseDescription? 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.PatchRoutersResponseDescription? 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.PatchRoutersResponseDescription), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponseDescription; + } + + /// + /// 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.PatchRoutersResponseDescription.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseDescription.g.cs new file mode 100644 index 0000000..d79c4bd --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseDescription.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Runway +{ + /// + /// An optional Model Router description. + /// + public sealed partial class PatchRoutersResponseDescription + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.Json.g.cs new file mode 100644 index 0000000..5a906f9 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponseSettings + { + /// + /// 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.PatchRoutersResponseSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponseSettings), + jsonSerializerContext) as global::Runway.PatchRoutersResponseSettings; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponseSettings? 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.PatchRoutersResponseSettings? 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.PatchRoutersResponseSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponseSettings; + } + + /// + /// 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.PatchRoutersResponseSettings.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs new file mode 100644 index 0000000..a62b918 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettings.g.cs @@ -0,0 +1,81 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public sealed partial class PatchRoutersResponseSettings + { + /// + /// Settings JSON schema version used when this snapshot was written. + /// + /// 1 + [global::System.Text.Json.Serialization.JsonPropertyName("schemaVersion")] + public double SchemaVersion { get; set; } = 1; + + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("models")] + public global::Runway.PatchRoutersResponseSettingsModels? Models { get; set; } + + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxCreditsPerGeneration")] + public global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? MaxCreditsPerGeneration { get; set; } + + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("optimizeFor")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsOptimizeForJsonConverter))] + public global::Runway.PatchRoutersResponseSettingsOptimizeFor? OptimizeFor { 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. + /// + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + /// + /// Settings JSON schema version used when this snapshot was written. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PatchRoutersResponseSettings( + global::Runway.PatchRoutersResponseSettingsModels? models, + global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? maxCreditsPerGeneration, + global::Runway.PatchRoutersResponseSettingsOptimizeFor? optimizeFor, + double schemaVersion = 1) + { + this.SchemaVersion = schemaVersion; + this.Models = models; + this.MaxCreditsPerGeneration = maxCreditsPerGeneration; + this.OptimizeFor = optimizeFor; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersResponseSettings() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs new file mode 100644 index 0000000..fa04a10 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsMaxCreditsPerGeneration.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// 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.PatchRoutersResponseSettingsMaxCreditsPerGeneration? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext) as global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration? 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.PatchRoutersResponseSettingsMaxCreditsPerGeneration? 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.PatchRoutersResponseSettingsMaxCreditsPerGeneration), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponseSettingsMaxCreditsPerGeneration; + } + + /// + /// 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.PatchRoutersResponseSettingsMaxCreditsPerGeneration.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsMaxCreditsPerGeneration.g.cs new file mode 100644 index 0000000..ed59271 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsMaxCreditsPerGeneration.g.cs @@ -0,0 +1,62 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded. + /// + public sealed partial class PatchRoutersResponseSettingsMaxCreditsPerGeneration + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video")] + public int? Video { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public int? Image { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public int? Audio { 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 PatchRoutersResponseSettingsMaxCreditsPerGeneration( + int? video, + int? image, + int? audio) + { + this.Video = video; + this.Image = image; + this.Audio = audio; + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersResponseSettingsMaxCreditsPerGeneration() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModels.Json.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModels.Json.g.cs new file mode 100644 index 0000000..1534370 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModels.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Runway +{ + public sealed partial class PatchRoutersResponseSettingsModels + { + /// + /// 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.PatchRoutersResponseSettingsModels? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Runway.PatchRoutersResponseSettingsModels), + jsonSerializerContext) as global::Runway.PatchRoutersResponseSettingsModels; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Runway.PatchRoutersResponseSettingsModels? 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.PatchRoutersResponseSettingsModels? 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.PatchRoutersResponseSettingsModels), + jsonSerializerContext).ConfigureAwait(false)) as global::Runway.PatchRoutersResponseSettingsModels; + } + + /// + /// 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.PatchRoutersResponseSettingsModels.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModels.g.cs new file mode 100644 index 0000000..04e0ba1 --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModels.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace Runway +{ + /// + /// When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update). + /// + public sealed partial class PatchRoutersResponseSettingsModels + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Runway.JsonConverters.PatchRoutersResponseSettingsModelsModeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Runway.PatchRoutersResponseSettingsModelsMode Mode { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("ids")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Ids { 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 PatchRoutersResponseSettingsModels( + global::Runway.PatchRoutersResponseSettingsModelsMode mode, + global::System.Collections.Generic.IList ids) + { + this.Mode = mode; + this.Ids = ids ?? throw new global::System.ArgumentNullException(nameof(ids)); + } + + /// + /// Initializes a new instance of the class. + /// + public PatchRoutersResponseSettingsModels() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModelsMode.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModelsMode.g.cs new file mode 100644 index 0000000..6b9eb4c --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsModelsMode.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace Runway +{ + /// + /// + /// + public enum PatchRoutersResponseSettingsModelsMode + { + /// + /// + /// + AllowNewExcept, + /// + /// + /// + AllowlistOnly, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PatchRoutersResponseSettingsModelsModeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PatchRoutersResponseSettingsModelsMode value) + { + return value switch + { + PatchRoutersResponseSettingsModelsMode.AllowNewExcept => "allow_new_except", + PatchRoutersResponseSettingsModelsMode.AllowlistOnly => "allowlist_only", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PatchRoutersResponseSettingsModelsMode? ToEnum(string value) + { + return value switch + { + "allow_new_except" => PatchRoutersResponseSettingsModelsMode.AllowNewExcept, + "allowlist_only" => PatchRoutersResponseSettingsModelsMode.AllowlistOnly, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsOptimizeFor.g.cs b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsOptimizeFor.g.cs new file mode 100644 index 0000000..874a6ad --- /dev/null +++ b/src/libs/Runway/Generated/Runway.Models.PatchRoutersResponseSettingsOptimizeFor.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Runway +{ + /// + /// Soft preference among eligible models: cost, latency, or quality. + /// + public enum PatchRoutersResponseSettingsOptimizeFor + { + /// + /// cost, latency, or quality. + /// + Cost, + /// + /// cost, latency, or quality. + /// + Latency, + /// + /// cost, latency, or quality. + /// + Quality, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class PatchRoutersResponseSettingsOptimizeForExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this PatchRoutersResponseSettingsOptimizeFor value) + { + return value switch + { + PatchRoutersResponseSettingsOptimizeFor.Cost => "cost", + PatchRoutersResponseSettingsOptimizeFor.Latency => "latency", + PatchRoutersResponseSettingsOptimizeFor.Quality => "quality", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static PatchRoutersResponseSettingsOptimizeFor? ToEnum(string value) + { + return value switch + { + "cost" => PatchRoutersResponseSettingsOptimizeFor.Cost, + "latency" => PatchRoutersResponseSettingsOptimizeFor.Latency, + "quality" => PatchRoutersResponseSettingsOptimizeFor.Quality, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Runway/Generated/Runway.RunwayClient.g.cs b/src/libs/Runway/Generated/Runway.RunwayClient.g.cs index 4bc5d0d..21a004f 100644 --- a/src/libs/Runway/Generated/Runway.RunwayClient.g.cs +++ b/src/libs/Runway/Generated/Runway.RunwayClient.g.cs @@ -58,6 +58,15 @@ public sealed partial class RunwayClient : global::Runway.IRunwayClient, global: JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public GenerateClient Generate => new GenerateClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// @@ -67,6 +76,15 @@ public sealed partial class RunwayClient : global::Runway.IRunwayClient, global: JsonSerializerContext = JsonSerializerContext, }; + /// + /// + /// + public ModelRouterClient ModelRouter => new ModelRouterClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + { + ReadResponseAsString = ReadResponseAsString, + JsonSerializerContext = JsonSerializerContext, + }; + /// /// /// diff --git a/src/libs/Runway/openapi.json b/src/libs/Runway/openapi.json index 5cf5930..9013f21 100644 --- a/src/libs/Runway/openapi.json +++ b/src/libs/Runway/openapi.json @@ -9969,6 +9969,10 @@ "minimum": 1, "maximum": 4 }, + "grounding": { + "description": "When true, enable live web search so the model can use current brand, trend, or event context. Default false for deterministic output.", + "type": "boolean" + }, "model": { "type": "string", "const": "seedream5_pro" } }, "required": ["promptText", "ratio", "model"], @@ -11642,430 +11646,1289 @@ } } }, - "/v1/organization": { - "get": { - "tags": ["Organization"], - "summary": "Get organization information", - "description": "Get usage tier and credit balance information about the organization associated with the API key used to make the request.", - "x-codeSamples": [ - { - "lang": "TypeScript", - "label": "Node SDK", - "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nconst details = await client.organization.retrieve();\nconsole.log(details.creditBalance);" - }, - { - "lang": "Python", - "label": "Python SDK", - "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\ndetails = client.organization.retrieve()\nprint(details.creditBalance)" - } - ], - "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "tier": { - "title": "OrganizationTierDetails", - "description": "Limits associated with the organization's tier.", - "type": "object", - "properties": { - "maxMonthlyCreditSpend": { - "description": "The maximum number of credits that can be purchased in a month.", - "type": "integer", - "minimum": 0, - "maximum": 9007199254740991 - }, - "models": { - "description": "An object containing model-specific limits. Each key represents a model.", - "type": "object", - "propertyNames": { - "title": "ModelVariant", - "type": "string", - "enum": [ - "gen4.5", - "gen3a_turbo", - "gen4_turbo", - "gen4_image", - "gen4_image_turbo", - "gpt_image_2", - "act_two", - "gen4_aleph", - "veo3", - "veo3.1", - "veo3.1_fast", - "gemini_2.5_flash", - "gemini_image3_pro", - "gemini_image3.1_flash", - "seedream5_pro", - "gemini_omni_flash", - "eleven_multilingual_v2", - "seed_audio", - "eleven_v3", - "eleven_text_to_sound_v2", - "eleven_voice_isolation", - "eleven_voice_dubbing", - "eleven_multilingual_sts_v2", - "eleven_scribe_v2", - "gwm1_avatars", - "gwm1_avatar_async_audio_to_video", - "gwm1_avatar_async_text_to_video", - "voice_processing", - "seedance2", - "seedance2_fast", - "seedance2_mini", - "magnific_precision_upscaler_v2", - "magnific_video_upscaler_creative", - "kling2.5_turbo_pro", - "kling3.0_pro", - "kling3.0_4k", - "kling3.0_standard", - "klingO3_pro", - "klingO3_standard", - "klingO3_4k", - "happyhorse_1_0", - "aleph2", - "product_swap", - "product_ad", - "multi_shot_video", - "product_ugc", - "marketing_stock_image", - "product_campaign_image", - "ad_localization" - ] - }, - "additionalProperties": { - "title": "ModelTierLimits", - "description": "Limits associated with the model.", - "type": "object", - "properties": { - "maxConcurrentGenerations": { - "description": "The maximum number of generations that can be run concurrently for this model.", - "type": "integer", - "minimum": 0, - "maximum": 9007199254740991 - }, - "maxDailyGenerations": { - "description": "The maximum number of generations that can be created each day for this model.", - "type": "integer", - "minimum": 0, - "maximum": 9007199254740991 - } - }, - "required": [ - "maxConcurrentGenerations", - "maxDailyGenerations" - ], - "additionalProperties": false - } - } - }, - "required": ["maxMonthlyCreditSpend", "models"], - "additionalProperties": false - }, - "creditBalance": { - "description": "The number of credits remaining in the organization account.", - "type": "integer", - "minimum": 0, - "maximum": 9007199254740991 - }, - "usage": { - "title": "OrganizationUsageDetails", - "description": "Usage data for the organization.", - "type": "object", - "properties": { - "models": { - "type": "object", - "propertyNames": { - "title": "ModelVariant", - "type": "string", - "enum": [ - "gen4.5", - "gen3a_turbo", - "gen4_turbo", - "gen4_image", - "gen4_image_turbo", - "gpt_image_2", - "act_two", - "gen4_aleph", - "veo3", - "veo3.1", - "veo3.1_fast", - "gemini_2.5_flash", - "gemini_image3_pro", - "gemini_image3.1_flash", - "seedream5_pro", - "gemini_omni_flash", - "eleven_multilingual_v2", - "seed_audio", - "eleven_v3", - "eleven_text_to_sound_v2", - "eleven_voice_isolation", - "eleven_voice_dubbing", - "eleven_multilingual_sts_v2", - "eleven_scribe_v2", - "gwm1_avatars", - "gwm1_avatar_async_audio_to_video", - "gwm1_avatar_async_text_to_video", - "voice_processing", - "seedance2", - "seedance2_fast", - "seedance2_mini", - "magnific_precision_upscaler_v2", - "magnific_video_upscaler_creative", - "kling2.5_turbo_pro", - "kling3.0_pro", - "kling3.0_4k", - "kling3.0_standard", - "klingO3_pro", - "klingO3_standard", - "klingO3_4k", - "happyhorse_1_0", - "aleph2", - "product_swap", - "product_ad", - "multi_shot_video", - "product_ugc", - "marketing_stock_image", - "product_campaign_image", - "ad_localization" - ] - }, - "additionalProperties": { - "title": "ModelUsage", - "description": "Usage data for the model.", - "type": "object", - "properties": { - "dailyGenerations": { - "description": "The number of generations that have been run for this model in the past day.", - "type": "integer", - "minimum": 0, - "maximum": 9007199254740991 - } - }, - "required": ["dailyGenerations"], - "additionalProperties": false - } - } - }, - "required": ["models"], - "additionalProperties": false - } - }, - "required": ["tier", "creditBalance", "usage"], - "additionalProperties": false - } - } - } - } - } - } - }, - "/v1/organization/usage": { + "/v1/generate/video": { "post": { - "tags": ["Organization"], - "summary": "Query credit usage", - "description": "Fetch credit usage data broken down by model and day for the organization associated with the API key used to make the request. Up to 90 days of data can be queried at a time.", - "x-codeSamples": [ - { - "lang": "TypeScript", - "label": "Node SDK", - "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nconst usage = await client.organization.retrieveUsage();\nconsole.log(usage);" - }, - { - "lang": "Python", - "label": "Python SDK", - "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\nusage = client.organization.retrieve_usage()\nprint(usage)" - } - ], + "tags": ["Generate"], + "summary": "Routed video generation", + "description": "Start a video generation task using a saved Model Router config instead of naming a model.", "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], "requestBody": { "content": { "application/json": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "RoutedVideoRequest", "type": "object", "properties": { - "startDate": { - "description": "The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If unspecified, it will default to 30 days before the current date. All dates are in UTC.", + "configId": { + "description": "The slug of a saved Model Router config to route this request with.", "type": "string", - "format": "date", - "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" + "pattern": "^[a-z][a-z0-9_-]{0,63}$" }, - "beforeDate": { - "description": "The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive. If unspecified, it will default to thirty days after the start date. Must be less than or equal to 90 days after the start date. All dates are in UTC.", - "type": "string", - "format": "date", - "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" - } - } - } - } - } - }, - "responses": { + "dryRun": { + "description": "When true, run the full routing pipeline and return the decision and estimated cost without generating. No task is created, nothing is billed, and no asset is produced.", + "type": "boolean" + }, + "input": { + "title": "UniversalVideoInput", + "description": "Model-agnostic video generation input. Fields are optional; the router selects a model and maps these options to it.", + "type": "object", + "properties": { + "promptText": { + "description": "A text prompt describing the desired video.", + "type": "string", + "minLength": 1, + "maxLength": 4000 + }, + "negativePrompt": { + "description": "A text description of what to avoid in the output.", + "type": "string", + "maxLength": 1000 + }, + "referenceImages": { + "description": "Optional image inputs. Each entry requires a `role`. At most one `first` and one `last` are allowed; multiple `reference` images are allowed.", + "maxItems": 4, + "type": "array", + "items": { + "title": "VideoReferenceImage", + "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\\/.*" + } + ] + }, + "role": { + "description": "How the image is used. `first` is the starting frame; `last` is an end frame; `reference` is additional image context.", + "type": "string", + "enum": ["first", "last", "reference"] + } + }, + "required": ["uri", "role"] + } + }, + "referenceVideos": { + "description": "Optional video inputs. Each entry requires a `role`. Use `source` for video-to-video; use `reference` for additional context videos (only models that support them remain eligible). At most one `source` is allowed.", + "maxItems": 2, + "type": "array", + "items": { + "title": "VideoReferenceVideo", + "type": "object", + "properties": { + "uri": { + "description": "A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": 16777216, + "pattern": "^data:video\\/.*" + } + ] + }, + "role": { + "description": "How the video is used. `source` is the primary video-to-video input; `reference` is additional video context.", + "type": "string", + "enum": ["source", "reference"] + } + }, + "required": ["uri", "role"] + } + }, + "referenceAudio": { + "description": "Optional audio inputs for the generation.", + "maxItems": 1, + "type": "array", + "items": { + "title": "VideoReferenceAudio", + "type": "object", + "properties": { + "uri": { + "description": "A HTTPS URL, Runway or data URI containing an encoded audio. See [our docs](/assets/inputs#audio) on audio inputs for more information.", + "example": "https://example.com/audio.mp3", + "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": 16777216, + "pattern": "^data:audio\\/.*" + } + ] + } + }, + "required": ["uri"] + } + }, + "keyframes": { + "description": "Timed guidance images for video restyle. Requires a source video; unsupported models are excluded.", + "maxItems": 5, + "type": "array", + "items": { + "title": "VideoKeyframe", + "description": "Timed guidance image for video-to-video restyle. Provide either absolute `seconds` or fractional `at`.", + "anyOf": [ + { + "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\\/.*" + } + ] + }, + "seconds": { + "type": "number", + "minimum": 0, + "maximum": 30 + }, + "range": { + "type": "object", + "properties": { + "start_seconds": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + }, + "end_seconds": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "required": ["start_seconds", "end_seconds"], + "additionalProperties": false + } + }, + "required": ["uri", "seconds"], + "additionalProperties": false + }, + { + "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\\/.*" + } + ] + }, + "at": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "range": { + "type": "object", + "properties": { + "start_seconds": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + }, + "end_seconds": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "required": ["start_seconds", "end_seconds"], + "additionalProperties": false + } + }, + "required": ["uri", "at"], + "additionalProperties": false + } + ] + } + }, + "duration": { + "description": "Desired duration of the output video, in seconds. Unsupported values exclude models; with a source video, V2V duration support applies.", + "type": "integer", + "minimum": 2, + "maximum": 15 + }, + "aspectRatio": { + "description": "Desired aspect ratio. Models that do not support the requested aspect are excluded.", + "type": "string", + "enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"] + }, + "resolution": { + "description": "Desired output resolution tier. Models that do not support the requested tier are excluded.", + "type": "string", + "enum": ["480p", "720p", "1080p", "4k"] + }, + "audio": { + "description": "Whether to generate native audio with the video. When true, only models that output audio remain eligible; when false, silent models and models with an audio toggle remain eligible (always-on native-audio models are excluded). When omitted, the selected model’s default applies.", + "type": "boolean" + }, + "seed": { + "description": "A seed for reproducible generation. Random if omitted.", + "type": "integer", + "minimum": 0, + "maximum": 4294967295 + }, + "contentModeration": { + "description": "Settings that affect the behavior of the content moderation system.", + "type": "object", + "properties": { + "publicFigureThreshold": { + "description": "When set to `low`, the content moderation system will be less strict about preventing generations that include recognizable public figures.", + "type": "string", + "enum": ["auto", "low"] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + }, + "required": ["configId", "input"], + "additionalProperties": false + } + } + } + }, + "responses": { + "200": { + "description": "The routing decision. Includes a task `id` for real requests; dry runs return the decision only.", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "title": "RoutedVideoTaskCreated", + "type": "object", + "properties": { + "dryRun": { "type": "boolean", "const": false }, + "id": { + "description": "The ID of the created task. Poll GET /v1/tasks/:id for the result.", + "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})$" + }, + "routing": { + "description": "Metadata describing which model the router selected and why.", + "type": "object", + "properties": { + "model": { + "description": "The public name of the model the router selected.", + "type": "string" + }, + "provider": { + "description": "The provider of the selected model.", + "type": "string" + }, + "configId": { + "description": "The slug of the router config that was applied to this request.", + "type": "string" + }, + "resolvedSettings": { + "description": "The resolved config settings the router used for this request.", + "type": "object", + "properties": { + "optimizeFor": { + "description": "The single optimization preference the config selected, used as the soft weighting when scoring eligible models.", + "type": "string", + "enum": ["cost", "latency", "quality"] + }, + "priceCeiling": { + "description": "The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling.", + "anyOf": [ + { "type": "number" }, + { "type": "null" } + ] + } + }, + "required": ["optimizeFor", "priceCeiling"], + "additionalProperties": false + }, + "resolvedInput": { + "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", + "type": "object", + "properties": { + "duration": { + "description": "Duration in seconds used for routing display (request value or router default).", + "type": "number" + }, + "ratio": { + "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", + "type": "string" + }, + "resolution": { + "description": "Resolution tier from the request, or the router default when omitted.", + "type": "string" + } + }, + "required": ["duration", "ratio", "resolution"], + "additionalProperties": false + }, + "estimatedCost": { + "description": "Estimated cost, computed against current pricing.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], + "additionalProperties": false + } + }, + "required": ["dryRun", "id", "routing"], + "additionalProperties": false + }, + { + "title": "RoutedVideoDryRun", + "type": "object", + "properties": { + "dryRun": { "type": "boolean", "const": true }, + "routing": { + "description": "Metadata describing which model the router selected and why.", + "type": "object", + "properties": { + "model": { + "description": "The public name of the model the router selected.", + "type": "string" + }, + "provider": { + "description": "The provider of the selected model.", + "type": "string" + }, + "configId": { + "description": "The slug of the router config that was applied to this request.", + "type": "string" + }, + "resolvedSettings": { + "description": "The resolved config settings the router used for this request.", + "type": "object", + "properties": { + "optimizeFor": { + "description": "The single optimization preference the config selected, used as the soft weighting when scoring eligible models.", + "type": "string", + "enum": ["cost", "latency", "quality"] + }, + "priceCeiling": { + "description": "The applied maximum credits per generation for this request’s modality, or null if the config sets no ceiling.", + "anyOf": [ + { "type": "number" }, + { "type": "null" } + ] + } + }, + "required": ["optimizeFor", "priceCeiling"], + "additionalProperties": false + }, + "resolvedInput": { + "description": "Request-side defaults resolved for the routing response. Not necessarily identical to prepared model options.", + "type": "object", + "properties": { + "duration": { + "description": "Duration in seconds used for routing display (request value or router default).", + "type": "number" + }, + "ratio": { + "description": "Concrete output ratio derived from aspectRatio (e.g. \"1280:720\"), or the router default.", + "type": "string" + }, + "resolution": { + "description": "Resolution tier from the request, or the router default when omitted.", + "type": "string" + } + }, + "required": ["duration", "ratio", "resolution"], + "additionalProperties": false + }, + "estimatedCost": { + "description": "Estimated cost, computed against current pricing.", + "type": "object", + "properties": { + "credits": { + "description": "Estimated cost of the generation in credits.", + "type": "number" + } + }, + "required": ["credits"], + "additionalProperties": false + } + }, + "required": [ + "model", + "provider", + "configId", + "resolvedSettings", + "resolvedInput", + "estimatedCost" + ], + "additionalProperties": false + } + }, + "required": ["dryRun", "routing"], + "additionalProperties": false + } + ], + "discriminator": { "propertyName": "dryRun" } + } + } + } + }, + "400": { + "description": "No model satisfies the config and request together. Returned identically for real and dry-run requests.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { "type": "string" }, + "code": { "type": "string", "const": "no_eligible_model" }, + "pipeline": { + "description": "The hard-filter pipeline in execution order with survivor counts at each stage.", + "type": "array", + "items": { + "type": "object", + "properties": { + "filter": { + "type": "string", + "enum": [ + "capability", + "prompt_length", + "input_support", + "allow_deny", + "price" + ] + }, + "remaining": { + "description": "How many models remained eligible after this filter ran.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["filter", "remaining"], + "additionalProperties": false + } + }, + "emptiedBy": { + "description": "The filter(s) that reduced the eligible pool to zero.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "capability", + "prompt_length", + "input_support", + "allow_deny", + "price" + ] + } + } + }, + "required": ["error", "code", "pipeline", "emptiedBy"], + "additionalProperties": false + } + } + } + }, + "404": { + "description": "The referenced router config does not exist or is not accessible to this account.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { "type": "string" }, + "code": { + "type": "string", + "const": "router_config_not_found" + } + }, + "required": ["error", "code"], + "additionalProperties": false + } + } + } + } + } + } + }, + "/v1/organization": { + "get": { + "tags": ["Organization"], + "summary": "Get organization information", + "description": "Get usage tier and credit balance information about the organization associated with the API key used to make the request.", + "x-codeSamples": [ + { + "lang": "TypeScript", + "label": "Node SDK", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nconst details = await client.organization.retrieve();\nconsole.log(details.creditBalance);" + }, + { + "lang": "Python", + "label": "Python SDK", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\ndetails = client.organization.retrieve()\nprint(details.creditBalance)" + } + ], + "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tier": { + "title": "OrganizationTierDetails", + "description": "Limits associated with the organization's tier.", + "type": "object", + "properties": { + "maxMonthlyCreditSpend": { + "description": "The maximum number of credits that can be purchased in a month.", + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + }, + "models": { + "description": "An object containing model-specific limits. Each key represents a model.", + "type": "object", + "propertyNames": { + "title": "ModelVariant", + "type": "string", + "enum": [ + "gen4.5", + "gen3a_turbo", + "gen4_turbo", + "gen4_image", + "gen4_image_turbo", + "gpt_image_2", + "act_two", + "gen4_aleph", + "veo3", + "veo3.1", + "veo3.1_fast", + "gemini_2.5_flash", + "gemini_image3_pro", + "gemini_image3.1_flash", + "seedream5_pro", + "seedream5_lite", + "gemini_omni_flash", + "eleven_multilingual_v2", + "seed_audio", + "eleven_v3", + "eleven_text_to_sound_v2", + "eleven_voice_isolation", + "eleven_voice_dubbing", + "eleven_multilingual_sts_v2", + "eleven_scribe_v2", + "gwm1_avatars", + "gwm1_avatar_async_audio_to_video", + "gwm1_avatar_async_text_to_video", + "voice_processing", + "seedance2", + "seedance2_fast", + "seedance2_mini", + "magnific_precision_upscaler_v2", + "magnific_video_upscaler_creative", + "kling2.5_turbo_pro", + "kling3.0_pro", + "kling3.0_4k", + "kling3.0_standard", + "klingO3_pro", + "klingO3_standard", + "klingO3_4k", + "happyhorse_1_0", + "aleph2", + "product_swap", + "product_ad", + "multi_shot_video", + "product_ugc", + "marketing_stock_image", + "product_campaign_image", + "ad_localization" + ] + }, + "additionalProperties": { + "title": "ModelTierLimits", + "description": "Limits associated with the model.", + "type": "object", + "properties": { + "maxConcurrentGenerations": { + "description": "The maximum number of generations that can be run concurrently for this model.", + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + }, + "maxDailyGenerations": { + "description": "The maximum number of generations that can be created each day for this model.", + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + } + }, + "required": [ + "maxConcurrentGenerations", + "maxDailyGenerations" + ], + "additionalProperties": false + } + } + }, + "required": ["maxMonthlyCreditSpend", "models"], + "additionalProperties": false + }, + "creditBalance": { + "description": "The number of credits remaining in the organization account.", + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + }, + "usage": { + "title": "OrganizationUsageDetails", + "description": "Usage data for the organization.", + "type": "object", + "properties": { + "models": { + "type": "object", + "propertyNames": { + "title": "ModelVariant", + "type": "string", + "enum": [ + "gen4.5", + "gen3a_turbo", + "gen4_turbo", + "gen4_image", + "gen4_image_turbo", + "gpt_image_2", + "act_two", + "gen4_aleph", + "veo3", + "veo3.1", + "veo3.1_fast", + "gemini_2.5_flash", + "gemini_image3_pro", + "gemini_image3.1_flash", + "seedream5_pro", + "seedream5_lite", + "gemini_omni_flash", + "eleven_multilingual_v2", + "seed_audio", + "eleven_v3", + "eleven_text_to_sound_v2", + "eleven_voice_isolation", + "eleven_voice_dubbing", + "eleven_multilingual_sts_v2", + "eleven_scribe_v2", + "gwm1_avatars", + "gwm1_avatar_async_audio_to_video", + "gwm1_avatar_async_text_to_video", + "voice_processing", + "seedance2", + "seedance2_fast", + "seedance2_mini", + "magnific_precision_upscaler_v2", + "magnific_video_upscaler_creative", + "kling2.5_turbo_pro", + "kling3.0_pro", + "kling3.0_4k", + "kling3.0_standard", + "klingO3_pro", + "klingO3_standard", + "klingO3_4k", + "happyhorse_1_0", + "aleph2", + "product_swap", + "product_ad", + "multi_shot_video", + "product_ugc", + "marketing_stock_image", + "product_campaign_image", + "ad_localization" + ] + }, + "additionalProperties": { + "title": "ModelUsage", + "description": "Usage data for the model.", + "type": "object", + "properties": { + "dailyGenerations": { + "description": "The number of generations that have been run for this model in the past day.", + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991 + } + }, + "required": ["dailyGenerations"], + "additionalProperties": false + } + } + }, + "required": ["models"], + "additionalProperties": false + } + }, + "required": ["tier", "creditBalance", "usage"], + "additionalProperties": false + } + } + } + } + } + } + }, + "/v1/organization/usage": { + "post": { + "tags": ["Organization"], + "summary": "Query credit usage", + "description": "Fetch credit usage data broken down by model and day for the organization associated with the API key used to make the request. Up to 90 days of data can be queried at a time.", + "x-codeSamples": [ + { + "lang": "TypeScript", + "label": "Node SDK", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nconst usage = await client.organization.retrieveUsage();\nconsole.log(usage);" + }, + { + "lang": "Python", + "label": "Python SDK", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\nusage = client.organization.retrieve_usage()\nprint(usage)" + } + ], + "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "startDate": { + "description": "The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If unspecified, it will default to 30 days before the current date. All dates are in UTC.", + "type": "string", + "format": "date", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" + }, + "beforeDate": { + "description": "The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive. If unspecified, it will default to thirty days after the start date. Must be less than or equal to 90 days after the start date. All dates are in UTC.", + "type": "string", + "format": "date", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "description": "The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in UTC.", + "type": "string", + "format": "date", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" + }, + "usedCredits": { + "description": "The credits used per model for the given date.", + "type": "array", + "items": { + "title": "CreditUsageForModelForDate", + "type": "object", + "properties": { + "model": { + "title": "ModelVariant", + "description": "The model that credits were spent on.", + "type": "string", + "enum": [ + "gen4.5", + "gen3a_turbo", + "gen4_turbo", + "gen4_image", + "gen4_image_turbo", + "gpt_image_2", + "act_two", + "gen4_aleph", + "veo3", + "veo3.1", + "veo3.1_fast", + "gemini_2.5_flash", + "gemini_image3_pro", + "gemini_image3.1_flash", + "seedream5_pro", + "seedream5_lite", + "gemini_omni_flash", + "eleven_multilingual_v2", + "seed_audio", + "eleven_v3", + "eleven_text_to_sound_v2", + "eleven_voice_isolation", + "eleven_voice_dubbing", + "eleven_multilingual_sts_v2", + "eleven_scribe_v2", + "gwm1_avatars", + "gwm1_avatar_async_audio_to_video", + "gwm1_avatar_async_text_to_video", + "voice_processing", + "seedance2", + "seedance2_fast", + "seedance2_mini", + "magnific_precision_upscaler_v2", + "magnific_video_upscaler_creative", + "kling2.5_turbo_pro", + "kling3.0_pro", + "kling3.0_4k", + "kling3.0_standard", + "klingO3_pro", + "klingO3_standard", + "klingO3_4k", + "happyhorse_1_0", + "aleph2", + "product_swap", + "product_ad", + "multi_shot_video", + "product_ugc", + "marketing_stock_image", + "product_campaign_image", + "ad_localization" + ] + }, + "amount": { + "description": "The net number of credits spent on the model. May be negative if refunds exceeded charges on this day.", + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": ["model", "amount"], + "additionalProperties": false + } + } + }, + "required": ["date", "usedCredits"], + "additionalProperties": false + } + }, + "models": { + "description": "The list of models with usage during the queried time range.", + "type": "array", + "items": { + "title": "ModelVariant", + "description": "A model that was used during the queried time range.", + "type": "string", + "enum": [ + "gen4.5", + "gen3a_turbo", + "gen4_turbo", + "gen4_image", + "gen4_image_turbo", + "gpt_image_2", + "act_two", + "gen4_aleph", + "veo3", + "veo3.1", + "veo3.1_fast", + "gemini_2.5_flash", + "gemini_image3_pro", + "gemini_image3.1_flash", + "seedream5_pro", + "seedream5_lite", + "gemini_omni_flash", + "eleven_multilingual_v2", + "seed_audio", + "eleven_v3", + "eleven_text_to_sound_v2", + "eleven_voice_isolation", + "eleven_voice_dubbing", + "eleven_multilingual_sts_v2", + "eleven_scribe_v2", + "gwm1_avatars", + "gwm1_avatar_async_audio_to_video", + "gwm1_avatar_async_text_to_video", + "voice_processing", + "seedance2", + "seedance2_fast", + "seedance2_mini", + "magnific_precision_upscaler_v2", + "magnific_video_upscaler_creative", + "kling2.5_turbo_pro", + "kling3.0_pro", + "kling3.0_4k", + "kling3.0_standard", + "klingO3_pro", + "klingO3_standard", + "klingO3_4k", + "happyhorse_1_0", + "aleph2", + "product_swap", + "product_ad", + "multi_shot_video", + "product_ugc", + "marketing_stock_image", + "product_campaign_image", + "ad_localization" + ] + } + } + }, + "required": ["results", "models"], + "additionalProperties": false + } + } + } + } + } + } + }, + "/v1/uploads": { + "post": { + "tags": ["Uploads"], + "summary": "Upload a file", + "description": "Uploads a temporary media file that can be referenced in API generation requests. The uploaded files will be automatically expired and deleted after a period of time. It is strongly recommended to use our SDKs for this which have a simplified interface that directly accepts file objects.", + "x-codeSamples": [ + { + "lang": "TypeScript", + "label": "Node SDK", + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\nimport fs from 'node:fs';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nfilename = './funny-cats.mp4';\nconst uploadUri = await client.uploads.createEphemeral(\n fs.createReadStream(filename),\n);\n\n// Use the runwayUri in generation requests\nconst task = await client.videoToVideo\n .create({\n model: 'gen4_aleph',\n videoUri: uploadUri,\n promptText: 'Add the easter elements to the cat video',\n references: [\n {\n type: 'image',\n uri: 'https://example.com/easter-scene.jpg',\n },\n ],\n ratio: '1280:720',\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + }, + { + "lang": "Python", + "label": "Python SDK", + "source": "# pip install runwayml\nfrom runwayml import RunwayML\nfrom pathlib import Path\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\nfile = Path('./funny-cats.mp4');\nupload_uri = client.uploads.create_ephemeral(\n file=file,\n)\n\n# Use the upload_uri in generation requests\ntask = client.video_to_video.create(\n model='gen4_aleph',\n video_uri=upload_uri,\n prompt_text='Add the easter elements to the cat video',\n references=[\n {\n 'type': 'image',\n 'uri': 'https://example.com/easter-scene.jpg',\n },\n ],\n ratio='1280:720',\n).wait_for_task_output()\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": { + "filename": { + "description": "The filename of the file to upload. Must have a valid extension and be a supported media type (image, video, or audio).", + "type": "string", + "minLength": 3, + "maxLength": 255 + }, + "type": { + "description": "The type of upload to create", + "type": "string", + "enum": ["ephemeral"] + } + }, + "required": ["filename", "type"] + } + } + } + }, + "responses": { + "200": { + "description": "The upload URL and Runway URI have been successfully created.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "uploadUrl": { + "description": "The URL to upload your media file to with a POST request.", + "type": "string", + "format": "uri" + }, + "fields": { + "description": "Fields that must be included in the file upload request as form data.", + "type": "object", + "propertyNames": { "type": "string" }, + "additionalProperties": { "type": "string" } + }, + "runwayUri": { + "description": "The Runway upload URI to use in other API generation requests", + "type": "string", + "pattern": "^runway:\\/\\/.*" + } + }, + "required": ["uploadUrl", "fields", "runwayUri"], + "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 + } + } + } + } + } + } + }, + "/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": "Success", + "description": "The task that was created.", "content": { "application/json": { "schema": { "type": "object", "properties": { - "results": { - "type": "array", - "items": { - "type": "object", - "properties": { - "date": { - "description": "The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in UTC.", - "type": "string", - "format": "date", - "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$" - }, - "usedCredits": { - "description": "The credits used per model for the given date.", - "type": "array", - "items": { - "title": "CreditUsageForModelForDate", - "type": "object", - "properties": { - "model": { - "title": "ModelVariant", - "description": "The model that credits were spent on.", - "type": "string", - "enum": [ - "gen4.5", - "gen3a_turbo", - "gen4_turbo", - "gen4_image", - "gen4_image_turbo", - "gpt_image_2", - "act_two", - "gen4_aleph", - "veo3", - "veo3.1", - "veo3.1_fast", - "gemini_2.5_flash", - "gemini_image3_pro", - "gemini_image3.1_flash", - "seedream5_pro", - "gemini_omni_flash", - "eleven_multilingual_v2", - "seed_audio", - "eleven_v3", - "eleven_text_to_sound_v2", - "eleven_voice_isolation", - "eleven_voice_dubbing", - "eleven_multilingual_sts_v2", - "eleven_scribe_v2", - "gwm1_avatars", - "gwm1_avatar_async_audio_to_video", - "gwm1_avatar_async_text_to_video", - "voice_processing", - "seedance2", - "seedance2_fast", - "seedance2_mini", - "magnific_precision_upscaler_v2", - "magnific_video_upscaler_creative", - "kling2.5_turbo_pro", - "kling3.0_pro", - "kling3.0_4k", - "kling3.0_standard", - "klingO3_pro", - "klingO3_standard", - "klingO3_4k", - "happyhorse_1_0", - "aleph2", - "product_swap", - "product_ad", - "multi_shot_video", - "product_ugc", - "marketing_stock_image", - "product_campaign_image", - "ad_localization" - ] - }, - "amount": { - "description": "The net number of credits spent on the model. May be negative if refunds exceeded charges on this day.", - "type": "integer", - "minimum": -9007199254740991, - "maximum": 9007199254740991 - } - }, - "required": ["model", "amount"], - "additionalProperties": false - } - } - }, - "required": ["date", "usedCredits"], - "additionalProperties": false - } - }, - "models": { - "description": "The list of models with usage during the queried time range.", - "type": "array", - "items": { - "title": "ModelVariant", - "description": "A model that was used during the queried time range.", - "type": "string", - "enum": [ - "gen4.5", - "gen3a_turbo", - "gen4_turbo", - "gen4_image", - "gen4_image_turbo", - "gpt_image_2", - "act_two", - "gen4_aleph", - "veo3", - "veo3.1", - "veo3.1_fast", - "gemini_2.5_flash", - "gemini_image3_pro", - "gemini_image3.1_flash", - "seedream5_pro", - "gemini_omni_flash", - "eleven_multilingual_v2", - "seed_audio", - "eleven_v3", - "eleven_text_to_sound_v2", - "eleven_voice_isolation", - "eleven_voice_dubbing", - "eleven_multilingual_sts_v2", - "eleven_scribe_v2", - "gwm1_avatars", - "gwm1_avatar_async_audio_to_video", - "gwm1_avatar_async_text_to_video", - "voice_processing", - "seedance2", - "seedance2_fast", - "seedance2_mini", - "magnific_precision_upscaler_v2", - "magnific_video_upscaler_creative", - "kling2.5_turbo_pro", - "kling3.0_pro", - "kling3.0_4k", - "kling3.0_standard", - "klingO3_pro", - "klingO3_standard", - "klingO3_4k", - "happyhorse_1_0", - "aleph2", - "product_swap", - "product_ad", - "multi_shot_video", - "product_ugc", - "marketing_stock_image", - "product_campaign_image", - "ad_localization" - ] - } + "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": ["results", "models"], + "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 } } @@ -12074,21 +12937,21 @@ } } }, - "/v1/uploads": { + "/v1/recipes/marketing_stock_image": { "post": { - "tags": ["Uploads"], - "summary": "Upload a file", - "description": "Uploads a temporary media file that can be referenced in API generation requests. The uploaded files will be automatically expired and deleted after a period of time. It is strongly recommended to use our SDKs for this which have a simplified interface that directly accepts file objects.", + "tags": ["Recipes"], + "summary": "Create a marketing stock image", + "description": "Generate a polished marketing stock image from a text brief and optional brand logo image.", "x-codeSamples": [ { "lang": "TypeScript", "label": "Node SDK", - "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\nimport fs from 'node:fs';\n\n// The env var RUNWAYML_API_SECRET is expected to contain your API key.\nconst client = new RunwayML();\n\nfilename = './funny-cats.mp4';\nconst uploadUri = await client.uploads.createEphemeral(\n fs.createReadStream(filename),\n);\n\n// Use the runwayUri in generation requests\nconst task = await client.videoToVideo\n .create({\n model: 'gen4_aleph',\n videoUri: uploadUri,\n promptText: 'Add the easter elements to the cat video',\n references: [\n {\n type: 'image',\n uri: 'https://example.com/easter-scene.jpg',\n },\n ],\n ratio: '1280:720',\n })\n .waitForTaskOutput();\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.marketingStockImage({\n version: '2026-06',\n prompt: 'Premium lifestyle photo for a sustainable travel backpack campaign, urban morning commute, natural copy space on the left',\n referenceImage: { uri: 'https://example.com/brand-logo.png' },\n});\n\nconsole.log(task);" }, { "lang": "Python", "label": "Python SDK", - "source": "# pip install runwayml\nfrom runwayml import RunwayML\nfrom pathlib import Path\n\n# The env var RUNWAYML_API_SECRET is expected to contain your API key.\nclient = RunwayML()\n\nfile = Path('./funny-cats.mp4');\nupload_uri = client.uploads.create_ephemeral(\n file=file,\n)\n\n# Use the upload_uri in generation requests\ntask = client.video_to_video.create(\n model='gen4_aleph',\n video_uri=upload_uri,\n prompt_text='Add the easter elements to the cat video',\n references=[\n {\n 'type': 'image',\n 'uri': 'https://example.com/easter-scene.jpg',\n },\n ],\n ratio='1280:720',\n).wait_for_task_output()\n\nprint(task)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.marketing_stock_image(\n version='2026-06',\n prompt='Premium lifestyle photo for a sustainable travel backpack campaign, urban morning commute, natural copy space on the left',\n reference_image={'uri': 'https://example.com/brand-logo.png'},\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12099,49 +12962,91 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { - "filename": { - "description": "The filename of the file to upload. Must have a valid extension and be a supported media type (image, video, or audio).", + "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", - "minLength": 3, - "maxLength": 255 + "enum": ["2026-06", "unsafe-latest"] + }, + "prompt": { + "description": "Marketing image brief. Describe the subject, audience, channel, desired mood, setting, and any constraints.", + "type": "string", + "minLength": 1, + "maxLength": 3500 + }, + "referenceImage": { + "description": "Optional brand logo image to guide the generated marketing stock image. 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 }, - "type": { - "description": "The type of upload to create", + "outputCount": { + "description": "The number of images to generate (1–4). Defaults to 4. Increasing this number affects credits consumed.", + "default": 4, + "type": "integer", + "minimum": 1, + "maximum": 4 + }, + "quality": { + "description": "GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are faster and use fewer credits; `high` (default) is slowest and highest fidelity.", + "default": "high", "type": "string", - "enum": ["ephemeral"] + "enum": ["low", "medium", "high"] } }, - "required": ["filename", "type"] + "required": ["version", "prompt"], + "additionalProperties": false } } } }, "responses": { "200": { - "description": "The upload URL and Runway URI have been successfully created.", + "description": "The task that was created.", "content": { "application/json": { "schema": { "type": "object", "properties": { - "uploadUrl": { - "description": "The URL to upload your media file to with a POST request.", - "type": "string", - "format": "uri" - }, - "fields": { - "description": "Fields that must be included in the file upload request as form data.", - "type": "object", - "propertyNames": { "type": "string" }, - "additionalProperties": { "type": "string" } - }, - "runwayUri": { - "description": "The Runway upload URI to use in other API generation requests", + "id": { + "description": "The ID of the task that was created. Use this to retrieve the task later.", "type": "string", - "pattern": "^runway:\\/\\/.*" + "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": ["uploadUrl", "fields", "runwayUri"], + "required": ["id"], "additionalProperties": false } } @@ -12163,21 +13068,21 @@ } } }, - "/v1/recipes/ad_localization": { + "/v1/recipes/product_ad": { "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.", + "summary": "Create a product ad video", + "description": "Generate a cinematic product ad from product images, optional style references, product info, and creative direction.", "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);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.productAd({\n version: '2026-07',\n productImages: [\n { uri: 'https://example.com/product-front.jpg' },\n { uri: 'https://example.com/product-side.jpg' },\n ],\n productInfo: 'Organic cold-pressed juice, 12oz glass bottle',\n userConcept: 'Bright, refreshing summer campaign with slow dolly moves',\n duration: 10,\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)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.product_ad(\n version='2026-07',\n product_images=[\n {'uri': 'https://example.com/product-front.jpg'},\n {'uri': 'https://example.com/product-side.jpg'},\n ],\n product_info='Organic cold-pressed juice, 12oz glass bottle',\n user_concept='Bright, refreshing summer campaign with slow dolly moves',\n duration=10,\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12189,78 +13094,134 @@ "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).", + "description": "Workflow version. Use a dated version (e.g. \"2026-07\") to pin behavior, or \"unsafe-latest\" to track the newest stable version (may break without notice).", "type": "string", - "enum": ["2026-06", "unsafe-latest"] + "enum": ["2026-06", "2026-07", "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 + "productImages": { + "description": "Product images (1–10). Multiple angles of the same product. All images inform product analysis and reference generation; only the first image is used as the primary product reference in the storyboard grid. See [our docs](/assets/inputs#images) on image inputs.", + "minItems": 1, + "maxItems": 10, + "type": "array", + "items": { + "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).", + "styleImages": { + "description": "Optional style reference images (0–4). Defines the visual treatment (lighting, palette, mood). Treated as a moodboard when multiple are provided.", + "maxItems": 4, + "type": "array", + "items": { + "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 + } + }, + "productInfo": { + "description": "Optional product description and specifications to inform creative direction and which product elements to highlight.", + "default": "", + "type": "string", + "maxLength": 2500 + }, + "userConcept": { + "description": "Optional creative direction describing brand voice, product framing, scene specifics, lighting, camera motion, and narrative.", + "default": "", + "type": "string", + "maxLength": 3500 + }, + "ratio": { + "description": "The resolution of the output video.", "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" + "1280:720", + "720:1280", + "960:960", + "834:1112", + "1920:1080", + "1080:1920", + "1440:1440", + "1248:1664" ] + }, + "duration": { + "description": "Duration of the output video in seconds (4–15). Defaults to 10 seconds.", + "type": "integer", + "minimum": 4, + "maximum": 15 + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": false, + "type": "boolean" } }, - "required": ["version", "referenceImage", "targetLanguage"], + "required": ["version", "productImages"], "additionalProperties": false } } @@ -12303,21 +13264,21 @@ } } }, - "/v1/recipes/marketing_stock_image": { + "/v1/recipes/product_campaign_image": { "post": { "tags": ["Recipes"], - "summary": "Create a marketing stock image", - "description": "Generate a polished marketing stock image from a text brief and optional brand logo image.", + "summary": "Create product campaign images", + "description": "Generate four fashion campaign images from a product image and style brief.", "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.marketingStockImage({\n version: '2026-06',\n prompt: 'Premium lifestyle photo for a sustainable travel backpack campaign, urban morning commute, natural copy space on the left',\n referenceImage: { uri: 'https://example.com/brand-logo.png' },\n});\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.productCampaignImage({\n version: '2026-06',\n image: { uri: 'https://example.com/product.jpg' },\n prompt: 'High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K',\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.marketing_stock_image(\n version='2026-06',\n prompt='Premium lifestyle photo for a sustainable travel backpack campaign, urban morning commute, natural copy space on the left',\n reference_image={'uri': 'https://example.com/brand-logo.png'},\n)\n\nprint(task)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.product_campaign_image(\n version='2026-06',\n image={'uri': 'https://example.com/product.jpg'},\n prompt='High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K',\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12333,14 +13294,8 @@ "type": "string", "enum": ["2026-06", "unsafe-latest"] }, - "prompt": { - "description": "Marketing image brief. Describe the subject, audience, channel, desired mood, setting, and any constraints.", - "type": "string", - "minLength": 1, - "maxLength": 3500 - }, - "referenceImage": { - "description": "Optional brand logo image to guide the generated marketing stock image. See [our docs](/assets/inputs#images) on image inputs.", + "image": { + "description": "Product image to preserve across the generated campaign. See [our docs](/assets/inputs#images) on image inputs.", "type": "object", "properties": { "uri": { @@ -12377,21 +13332,14 @@ "required": ["uri"], "additionalProperties": false }, - "outputCount": { - "description": "The number of images to generate (1–4). Defaults to 4. Increasing this number affects credits consumed.", - "default": 4, - "type": "integer", - "minimum": 1, - "maximum": 4 - }, - "quality": { - "description": "GPT Image 2 rendering quality (`low`, `medium`, or `high`). Lower settings are faster and use fewer credits; `high` (default) is slowest and highest fidelity.", - "default": "high", + "prompt": { + "description": "Style / creative brief for the fashion campaign, e.g. \"High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K\".", "type": "string", - "enum": ["low", "medium", "high"] + "minLength": 1, + "maxLength": 3500 } }, - "required": ["version", "prompt"], + "required": ["version", "image", "prompt"], "additionalProperties": false } } @@ -12434,21 +13382,21 @@ } } }, - "/v1/recipes/product_ad": { + "/v1/recipes/product_swap": { "post": { "tags": ["Recipes"], - "summary": "Create a product ad video", - "description": "Generate a cinematic product ad from product images, optional style references, product info, and creative direction.", + "summary": "Swap a product in a reference video", + "description": "Replace the product in a reference video with a new product, preserving camera motion, lighting, and scene composition.", "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.productAd({\n version: '2026-07',\n productImages: [\n { uri: 'https://example.com/product-front.jpg' },\n { uri: 'https://example.com/product-side.jpg' },\n ],\n productInfo: 'Organic cold-pressed juice, 12oz glass bottle',\n userConcept: 'Bright, refreshing summer campaign with slow dolly moves',\n duration: 10,\n});\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.productSwap({\n version: '2026-06',\n referenceVideo: { uri: 'https://example.com/reference-ad.mp4' },\n originalProductImage: { uri: 'https://example.com/original-product.jpg' },\n newProductImages: [\n { uri: 'https://example.com/new-product-front.jpg', view: 'front' },\n { uri: 'https://example.com/new-product-side.jpg', view: 'side' },\n ],\n duration: 10,\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.product_ad(\n version='2026-07',\n product_images=[\n {'uri': 'https://example.com/product-front.jpg'},\n {'uri': 'https://example.com/product-side.jpg'},\n ],\n product_info='Organic cold-pressed juice, 12oz glass bottle',\n user_concept='Bright, refreshing summer campaign with slow dolly moves',\n duration=10,\n)\n\nprint(task)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.product_swap(\n version='2026-06',\n reference_video={'uri': 'https://example.com/reference-ad.mp4'},\n original_product_image={'uri': 'https://example.com/original-product.jpg'},\n new_product_images=[\n {'uri': 'https://example.com/new-product-front.jpg', 'view': 'front'},\n {'uri': 'https://example.com/new-product-side.jpg', 'view': 'side'},\n ],\n duration=10,\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12460,12 +13408,88 @@ "type": "object", "properties": { "version": { - "description": "Workflow version. Use a dated version (e.g. \"2026-07\") to pin behavior, or \"unsafe-latest\" to track the newest stable version (may break without notice).", + "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", "2026-07", "unsafe-latest"] + "enum": ["2026-06", "unsafe-latest"] }, - "productImages": { - "description": "Product images (1–10). Multiple angles of the same product. All images inform product analysis and reference generation; only the first image is used as the primary product reference in the storyboard grid. See [our docs](/assets/inputs#images) on image inputs.", + "referenceVideo": { + "description": "Reference video containing the product to swap. Duration must be between 1.8 and 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.", + "type": "object", + "properties": { + "uri": { + "description": "A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", + "example": "https://example.com/video.mp4", + "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": 16777216, + "pattern": "^data:video\\/.*" + } + ] + } + }, + "required": ["uri"], + "additionalProperties": false + }, + "originalProductImage": { + "description": "Image of the original product being swapped out. 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 + }, + "newProductImages": { + "description": "Reference images of the new product (1–10). Supply multiple angles when the reference video shows the product from different views — optionally label each with `view` (\"front\", \"side\", or \"back\"). A single pre-composed reference sheet is also supported (omit `view`). See [our docs](/assets/inputs#images) on image inputs.", "minItems": 1, "maxItems": 10, "type": "array", @@ -12501,93 +13525,40 @@ "pattern": "^data:image\\/.*" } ] + }, + "view": { + "description": "Optional view label for this reference (front, side, or back). Omit when supplying a single reference sheet or when view labels are unknown.", + "type": "string", + "enum": ["front", "side", "back"] } }, "required": ["uri"], "additionalProperties": false } }, - "styleImages": { - "description": "Optional style reference images (0–4). Defines the visual treatment (lighting, palette, mood). Treated as a moodboard when multiple are provided.", - "maxItems": 4, - "type": "array", - "items": { - "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 - } - }, - "productInfo": { - "description": "Optional product description and specifications to inform creative direction and which product elements to highlight.", - "default": "", - "type": "string", - "maxLength": 2500 - }, - "userConcept": { - "description": "Optional creative direction describing brand voice, product framing, scene specifics, lighting, camera motion, and narrative.", - "default": "", - "type": "string", - "maxLength": 3500 - }, - "ratio": { - "description": "The resolution of the output video.", - "type": "string", - "enum": [ - "1280:720", - "720:1280", - "960:960", - "834:1112", - "1920:1080", - "1080:1920", - "1440:1440", - "1248:1664" - ] - }, "duration": { "description": "Duration of the output video in seconds (4–15). Defaults to 10 seconds.", "type": "integer", "minimum": 4, "maximum": 15 }, + "resolution": { + "description": "Output video resolution. Defaults to 720p.", + "type": "string", + "enum": ["720p", "1080p"] + }, "audio": { "description": "Whether to generate audio for the video.", - "default": false, + "default": true, "type": "boolean" } }, - "required": ["version", "productImages"], + "required": [ + "version", + "referenceVideo", + "originalProductImage", + "newProductImages" + ], "additionalProperties": false } } @@ -12630,21 +13601,21 @@ } } }, - "/v1/recipes/product_campaign_image": { + "/v1/recipes/multi_shot_video": { "post": { "tags": ["Recipes"], - "summary": "Create product campaign images", - "description": "Generate four fashion campaign images from a product image and style brief.", + "summary": "Create a multi-shot video", + "description": "Generate a multi-cut video from a story prompt (auto mode) or a custom shot list (custom mode).", "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.productCampaignImage({\n version: '2026-06',\n image: { uri: 'https://example.com/product.jpg' },\n prompt: 'High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K',\n});\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.multiShotVideo({\n version: '2026-06',\n prompt: 'A lone astronaut discovers a glowing forest on a distant planet',\n duration: 10,\n ratio: '1280:720',\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.product_campaign_image(\n version='2026-06',\n image={'uri': 'https://example.com/product.jpg'},\n prompt='High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K',\n)\n\nprint(task)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.multi_shot_video(\n version='2026-06',\n prompt='A lone astronaut discovers a glowing forest on a distant planet',\n duration=10,\n ratio='1280:720',\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12653,60 +13624,194 @@ "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"] + "oneOf": [ + { + "type": "object", + "properties": { + "mode": { + "description": "Workflow mode. `auto` decomposes a story prompt into exactly 5 shots.", + "type": "string", + "const": "auto" + }, + "prompt": { + "description": "Story prompt for auto mode.", + "type": "string", + "minLength": 1, + "maxLength": 2500 + }, + "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"] + }, + "firstFrame": { + "description": "Optional image used as the first frame of the output video. 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 + }, + "ratio": { + "description": "Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`, `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`, `1440:1440`) use the pro tier. Defaults to `1280:720`.", + "type": "string", + "enum": [ + "1280:720", + "720:1280", + "960:960", + "1920:1080", + "1080:1920", + "1440:1440" + ] + }, + "duration": { + "description": "Total duration of the output video in seconds. Defaults to 10 seconds.", + "type": "number", + "enum": [5, 10, 15] + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" + } + }, + "required": ["mode", "prompt", "version"], + "additionalProperties": false }, - "image": { - "description": "Product image to preserve across the generated campaign. 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:\\/\\/.*" + "mode": { + "description": "Workflow mode. `custom` polishes a user-provided shot list of 3–5 shots.", + "type": "string", + "const": "custom" + }, + "shots": { + "description": "Shot list for custom mode (3–5 shots). Per-shot durations must sum to `duration`.", + "minItems": 3, + "maxItems": 5, + "type": "array", + "items": { + "type": "object", + "properties": { + "prompt": { + "description": "Shot description prompt.", + "type": "string", + "minLength": 3, + "maxLength": 512 + }, + "duration": { + "description": "Duration of this shot in seconds.", + "type": "integer", + "minimum": 1, + "maximum": 15 + } }, - { - "description": "A data URI containing encoded media.", - "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", - "type": "string", - "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "required": ["prompt", "duration"], + "additionalProperties": false + } + }, + "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"] + }, + "firstFrame": { + "description": "Optional image used as the first frame of the output video. 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 + }, + "ratio": { + "description": "Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`, `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`, `1440:1440`) use the pro tier. Defaults to `1280:720`.", + "type": "string", + "enum": [ + "1280:720", + "720:1280", + "960:960", + "1920:1080", + "1080:1920", + "1440:1440" ] + }, + "duration": { + "description": "Total duration of the output video in seconds. Defaults to 10 seconds.", + "type": "number", + "enum": [5, 10, 15] + }, + "audio": { + "description": "Whether to generate audio for the video.", + "default": true, + "type": "boolean" } }, - "required": ["uri"], + "required": ["mode", "shots", "version"], "additionalProperties": false - }, - "prompt": { - "description": "Style / creative brief for the fashion campaign, e.g. \"High-key fashion editorial, gorpcore-meets-blokecore-meets-Y2K\".", - "type": "string", - "minLength": 1, - "maxLength": 3500 } - }, - "required": ["version", "image", "prompt"], - "additionalProperties": false + ], + "discriminator": { "propertyName": "mode" } } } } @@ -12748,21 +13853,21 @@ } } }, - "/v1/recipes/product_swap": { + "/v1/recipes/product_ugc": { "post": { "tags": ["Recipes"], - "summary": "Swap a product in a reference video", - "description": "Replace the product in a reference video with a new product, preserving camera motion, lighting, and scene composition.", + "summary": "Create a product UGC video", + "description": "Generate a vertical user-generated content ad from a character image, product image, product details, and optional creative direction.", "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.productSwap({\n version: '2026-06',\n referenceVideo: { uri: 'https://example.com/reference-ad.mp4' },\n originalProductImage: { uri: 'https://example.com/original-product.jpg' },\n newProductImages: [\n { uri: 'https://example.com/new-product-front.jpg', view: 'front' },\n { uri: 'https://example.com/new-product-side.jpg', view: 'side' },\n ],\n duration: 10,\n});\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\n\nconst task = await client.recipes.productUgc({\n version: '2026-06',\n characterImage: { uri: 'https://example.com/creator.jpg' },\n productImage: { uri: 'https://example.com/product.jpg' },\n productInfo: 'Wireless game controller with haptic feedback triggers',\n userConcept: 'Enthusiastic creator tone, demonstrate the product in hand',\n duration: 15,\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.product_swap(\n version='2026-06',\n reference_video={'uri': 'https://example.com/reference-ad.mp4'},\n original_product_image={'uri': 'https://example.com/original-product.jpg'},\n new_product_images=[\n {'uri': 'https://example.com/new-product-front.jpg', 'view': 'front'},\n {'uri': 'https://example.com/new-product-side.jpg', 'view': 'side'},\n ],\n duration=10,\n)\n\nprint(task)" + "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.product_ugc(\n version='2026-06',\n character_image={'uri': 'https://example.com/creator.jpg'},\n product_image={'uri': 'https://example.com/product.jpg'},\n product_info='Wireless game controller with haptic feedback triggers',\n user_concept='Enthusiastic creator tone, demonstrate the product in hand',\n duration=15,\n)\n\nprint(task)" } ], "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], @@ -12778,13 +13883,13 @@ "type": "string", "enum": ["2026-06", "unsafe-latest"] }, - "referenceVideo": { - "description": "Reference video containing the product to swap. Duration must be between 1.8 and 15 seconds. See [our docs](/assets/inputs#videos) on video inputs.", + "characterImage": { + "description": "Image of the character who will appear on camera in the UGC video. Aspect ratio (width / height) must be between 0.4 and 4. See [our docs](/assets/inputs#images) for image input requirements.", "type": "object", "properties": { "uri": { - "description": "A HTTPS URL, Runway or data URI containing an encoded video. See [our docs](/assets/inputs#videos) on video inputs for more information.", - "example": "https://example.com/video.mp4", + "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.", @@ -12807,8 +13912,8 @@ "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", "type": "string", "minLength": 13, - "maxLength": 16777216, - "pattern": "^data:video\\/.*" + "maxLength": 5242880, + "pattern": "^data:image\\/.*" } ] } @@ -12816,8 +13921,8 @@ "required": ["uri"], "additionalProperties": false }, - "originalProductImage": { - "description": "Image of the original product being swapped out. See [our docs](/assets/inputs#images) on image inputs.", + "productImage": { + "description": "Image of the product being promoted. Aspect ratio (width / height) must be between 0.4 and 4. See [our docs](/assets/inputs#images) for image input requirements.", "type": "object", "properties": { "uri": { @@ -12849,69 +13954,33 @@ "pattern": "^data:image\\/.*" } ] - } - }, - "required": ["uri"], - "additionalProperties": false - }, - "newProductImages": { - "description": "Reference images of the new product (1–10). Supply multiple angles when the reference video shows the product from different views — optionally label each with `view` (\"front\", \"side\", or \"back\"). A single pre-composed reference sheet is also supported (omit `view`). See [our docs](/assets/inputs#images) on image inputs.", - "minItems": 1, - "maxItems": 10, - "type": "array", - "items": { - "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\\/.*" - } - ] - }, - "view": { - "description": "Optional view label for this reference (front, side, or back). Omit when supplying a single reference sheet or when view labels are unknown.", - "type": "string", - "enum": ["front", "side", "back"] - } - }, - "required": ["uri"], - "additionalProperties": false - } + } + }, + "required": ["uri"], + "additionalProperties": false + }, + "productInfo": { + "description": "Product details and creative brief — what the product is, key benefits, and any specifics the script should reference.", + "default": "", + "type": "string", + "maxLength": 2500 + }, + "userConcept": { + "description": "Optional creative direction for the UGC video — tone, voice register, specific message, or an entire dialog script.", + "default": "", + "type": "string", + "maxLength": 3500 }, "duration": { - "description": "Duration of the output video in seconds (4–15). Defaults to 10 seconds.", + "description": "Duration of the output video in seconds (4–15). Defaults to 15 seconds.", "type": "integer", "minimum": 4, "maximum": 15 }, - "resolution": { - "description": "Output video resolution. Defaults to 720p.", + "ratio": { + "description": "The resolution of the output video.", "type": "string", - "enum": ["720p", "1080p"] + "enum": ["720:1280", "1080:1920"] }, "audio": { "description": "Whether to generate audio for the video.", @@ -12919,12 +13988,7 @@ "type": "boolean" } }, - "required": [ - "version", - "referenceVideo", - "originalProductImage", - "newProductImages" - ], + "required": ["version", "characterImage", "productImage"], "additionalProperties": false } } @@ -12967,434 +14031,784 @@ } } }, - "/v1/recipes/multi_shot_video": { - "post": { - "tags": ["Recipes"], - "summary": "Create a multi-shot video", - "description": "Generate a multi-cut video from a story prompt (auto mode) or a custom shot list (custom mode).", + "/v1/routers": { + "get": { + "tags": ["Model Router"], + "summary": "List Model Routers", + "description": "List Model Router configurations for the authenticated organization with cursor-based pagination.", "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.multiShotVideo({\n version: '2026-06',\n prompt: 'A lone astronaut discovers a glowing forest on a distant planet',\n duration: 10,\n ratio: '1280:720',\n});\n\nconsole.log(task);" + "source": "// npm install --save @runwayml/sdk\nimport RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\nconst routers = await client.routers.list();\nfor await (const router of routers) {\n console.log(router);\n}" + } + ], + "parameters": [ + { + "name": "cursor", + "in": "query", + "required": false, + "schema": { "type": "string", "minLength": 1, "maxLength": 1000 }, + "description": "Cursor from a previous response for fetching the next page of results." }, { - "lang": "Python", - "label": "Python SDK", - "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.multi_shot_video(\n version='2026-06',\n prompt='A lone astronaut discovers a glowing forest on a distant planet',\n duration=10,\n ratio='1280:720',\n)\n\nprint(task)" - } + "name": "limit", + "in": "query", + "required": true, + "schema": { + "default": 50, + "type": "integer", + "minimum": 1, + "maximum": 100 + }, + "description": "The maximum number of items to return per page." + }, + { "$ref": "#/components/parameters/X-Runway-Version" } ], - "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "oneOf": [ - { - "type": "object", - "properties": { - "mode": { - "description": "Workflow mode. `auto` decomposes a story prompt into exactly 5 shots.", - "type": "string", - "const": "auto" - }, - "prompt": { - "description": "Story prompt for auto mode.", - "type": "string", - "minLength": 1, - "maxLength": 2500 - }, - "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"] - }, - "firstFrame": { - "description": "Optional image used as the first frame of the output video. See [our docs](/assets/inputs#images) on image inputs.", + "responses": { + "200": { + "description": "A paginated list of Model Router configurations.", + "content": { + "application/json": { + "schema": { + "title": "ModelRouterList", + "type": "object", + "properties": { + "data": { + "description": "The list of items for the current page.", + "type": "array", + "items": { + "title": "ModelRouter", + "description": "A named Model Router configuration.", "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:\\/\\/.*" + "id": { + "description": "The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + }, + "slug": { + "description": "Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "name": { + "description": "Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests.", + "type": "string", + "minLength": 1, + "maxLength": 255 + }, + "description": { + "description": "An optional Model Router description.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "version": { + "description": "Current settings version. Increments when settings change; name and description updates do not create a new version.", + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "settings": { + "type": "object", + "properties": { + "schemaVersion": { + "description": "Settings JSON schema version used when this snapshot was written.", + "type": "number", + "const": 1 }, - { - "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:\\/\\/.*" + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "allow_new_except", + "allowlist_only" + ] + }, + "ids": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["mode", "ids"], + "additionalProperties": false }, - { - "description": "A data URI containing encoded media.", - "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", + "type": "object", + "properties": { + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "additionalProperties": false + }, + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", - "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "enum": ["cost", "latency", "quality"] } - ] + }, + "required": ["schemaVersion"], + "additionalProperties": false + }, + "createdAt": { + "description": "When the Model Router was created.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" + }, + "updatedAt": { + "description": "When the Model Router was last updated.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" } }, - "required": ["uri"], + "required": [ + "id", + "slug", + "name", + "description", + "version", + "settings", + "createdAt", + "updatedAt" + ], "additionalProperties": false - }, - "ratio": { - "description": "Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`, `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`, `1440:1440`) use the pro tier. Defaults to `1280:720`.", - "type": "string", - "enum": [ - "1280:720", - "720:1280", - "960:960", - "1920:1080", - "1080:1920", - "1440:1440" - ] - }, - "duration": { - "description": "Total duration of the output video in seconds. Defaults to 10 seconds.", - "type": "number", - "enum": [5, 10, 15] - }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" } }, - "required": ["mode", "prompt", "version"], - "additionalProperties": false + "hasMore": { + "description": "Whether there are more items available after this page.", + "type": "boolean" + }, + "nextCursor": { + "description": "Cursor to use for fetching the next page, or null if there are no more pages.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + } }, - { - "type": "object", - "properties": { - "mode": { - "description": "Workflow mode. `custom` polishes a user-provided shot list of 3–5 shots.", - "type": "string", - "const": "custom" - }, - "shots": { - "description": "Shot list for custom mode (3–5 shots). Per-shot durations must sum to `duration`.", - "minItems": 3, - "maxItems": 5, - "type": "array", - "items": { - "type": "object", - "properties": { - "prompt": { - "description": "Shot description prompt.", - "type": "string", - "minLength": 3, - "maxLength": 512 - }, - "duration": { - "description": "Duration of this shot in seconds.", - "type": "integer", - "minimum": 1, - "maximum": 15 - } - }, - "required": ["prompt", "duration"], - "additionalProperties": false - } + "required": ["data", "hasMore", "nextCursor"], + "additionalProperties": false + } + } + } + } + } + }, + "post": { + "tags": ["Model Router"], + "summary": "Create Model Router", + "description": "Create a Model Router configuration.", + "x-codeSamples": [ + { + "lang": "TypeScript", + "label": "Node SDK", + "source": "import RunwayML from '@runwayml/sdk';\n\nconst client = new RunwayML();\nconst router = await client.routers.create({\n slug: 'preview-fast',\n name: 'Preview (fast)',\n settings: {\n optimizeFor: 'cost',\n },\n});" + } + ], + "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "ModelRouterCreateRequest", + "type": "object", + "properties": { + "slug": { + "description": "Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "name": { + "description": "Optional human-readable display name for this router. Defaults to the slug when omitted.", + "type": "string", + "minLength": 1, + "maxLength": 255 + }, + "description": { + "description": "An optional Model Router description.", + "type": "string", + "maxLength": 2000 + }, + "settings": { + "description": "Model Router routing preferences. Defaults to cost-optimized allow-all when omitted. Modality is implied by the generate endpoint used with this Model Router.", + "title": "ModelRouterSettings", + "type": "object", + "properties": { + "schemaVersion": { + "description": "Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it.", + "type": "number", + "const": 1 }, - "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"] + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": ["allow_new_except", "allowlist_only"] + }, + "ids": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["mode", "ids"], + "additionalProperties": false }, - "firstFrame": { - "description": "Optional image used as the first frame of the output video. See [our docs](/assets/inputs#images) on image inputs.", + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", "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\\/.*" - } - ] + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 } }, - "required": ["uri"], "additionalProperties": false }, - "ratio": { - "description": "Output dimensions as width:height. 720p ratios (`1280:720`, `720:1280`, `960:960`) use the standard tier; 1080p ratios (`1920:1080`, `1080:1920`, `1440:1440`) use the pro tier. Defaults to `1280:720`.", + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", "type": "string", - "enum": [ - "1280:720", - "720:1280", - "960:960", - "1920:1080", - "1080:1920", - "1440:1440" - ] - }, - "duration": { - "description": "Total duration of the output video in seconds. Defaults to 10 seconds.", - "type": "number", - "enum": [5, 10, 15] - }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" + "enum": ["cost", "latency", "quality"] } }, - "required": ["mode", "shots", "version"], "additionalProperties": false } - ], - "discriminator": { "propertyName": "mode" } + }, + "required": ["slug"] } } } }, "responses": { "200": { - "description": "The task that was created.", + "description": "A named Model Router configuration.", "content": { "application/json": { "schema": { + "title": "ModelRouter", "type": "object", "properties": { "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", + "description": "The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests.", "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})$" + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + }, + "slug": { + "description": "Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "name": { + "description": "Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests.", + "type": "string", + "minLength": 1, + "maxLength": 255 + }, + "description": { + "description": "An optional Model Router description.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "version": { + "description": "Current settings version. Increments when settings change; name and description updates do not create a new version.", + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "settings": { + "type": "object", + "properties": { + "schemaVersion": { + "description": "Settings JSON schema version used when this snapshot was written.", + "type": "number", + "const": 1 + }, + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": ["allow_new_except", "allowlist_only"] + }, + "ids": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["mode", "ids"], + "additionalProperties": false + }, + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", + "type": "object", + "properties": { + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "additionalProperties": false + }, + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", + "type": "string", + "enum": ["cost", "latency", "quality"] + } + }, + "required": ["schemaVersion"], + "additionalProperties": false + }, + "createdAt": { + "description": "When the Model Router was created.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" + }, + "updatedAt": { + "description": "When the Model Router was last updated.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" } }, - "required": ["id"], + "required": [ + "id", + "slug", + "name", + "description", + "version", + "settings", + "createdAt", + "updatedAt" + ], "additionalProperties": false } } } + } + } + } + }, + "/v1/routers/{id}": { + "get": { + "tags": ["Model Router"], + "summary": "Retrieve Model Router", + "description": "Retrieve a Model Router configuration by ID.", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "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})$" + }, + "description": "The Model Router's primary key ID (UUID)." }, - "429": { - "description": "You have exceeded the rate limit for this endpoint.", + { "$ref": "#/components/parameters/X-Runway-Version" } + ], + "responses": { + "200": { + "description": "A named Model Router configuration.", "content": { "application/json": { "schema": { + "title": "ModelRouter", "type": "object", - "properties": { "error": { "type": "string" } }, - "required": ["error"], + "properties": { + "id": { + "description": "The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests.", + "type": "string", + "format": "uuid", + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + }, + "slug": { + "description": "Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "name": { + "description": "Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests.", + "type": "string", + "minLength": 1, + "maxLength": 255 + }, + "description": { + "description": "An optional Model Router description.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "version": { + "description": "Current settings version. Increments when settings change; name and description updates do not create a new version.", + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "settings": { + "type": "object", + "properties": { + "schemaVersion": { + "description": "Settings JSON schema version used when this snapshot was written.", + "type": "number", + "const": 1 + }, + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": ["allow_new_except", "allowlist_only"] + }, + "ids": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["mode", "ids"], + "additionalProperties": false + }, + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", + "type": "object", + "properties": { + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "additionalProperties": false + }, + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", + "type": "string", + "enum": ["cost", "latency", "quality"] + } + }, + "required": ["schemaVersion"], + "additionalProperties": false + }, + "createdAt": { + "description": "When the Model Router was created.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" + }, + "updatedAt": { + "description": "When the Model Router was last updated.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" + } + }, + "required": [ + "id", + "slug", + "name", + "description", + "version", + "settings", + "createdAt", + "updatedAt" + ], "additionalProperties": false } } } } } - } - }, - "/v1/recipes/product_ugc": { - "post": { - "tags": ["Recipes"], - "summary": "Create a product UGC video", - "description": "Generate a vertical user-generated content ad from a character image, product image, product details, and optional creative direction.", - "x-codeSamples": [ + }, + "patch": { + "tags": ["Model Router"], + "summary": "Update Model Router", + "description": "Update a Model Router configuration. Settings changes append a new version; name and description updates do not. Settings are merged with the current snapshot — omitted fields keep their existing values.", + "parameters": [ { - "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.productUgc({\n version: '2026-06',\n characterImage: { uri: 'https://example.com/creator.jpg' },\n productImage: { uri: 'https://example.com/product.jpg' },\n productInfo: 'Wireless game controller with haptic feedback triggers',\n userConcept: 'Enthusiastic creator tone, demonstrate the product in hand',\n duration: 15,\n});\n\nconsole.log(task);" + "name": "id", + "in": "path", + "required": true, + "schema": { + "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})$" + }, + "description": "The Model Router's primary key ID (UUID)." }, - { - "lang": "Python", - "label": "Python SDK", - "source": "# pip install runwayml\nfrom runwayml import RunwayML\n\nclient = RunwayML()\n\ntask = client.recipes.product_ugc(\n version='2026-06',\n character_image={'uri': 'https://example.com/creator.jpg'},\n product_image={'uri': 'https://example.com/product.jpg'},\n product_info='Wireless game controller with haptic feedback triggers',\n user_concept='Enthusiastic creator tone, demonstrate the product in hand',\n duration=15,\n)\n\nprint(task)" - } + { "$ref": "#/components/parameters/X-Runway-Version" } ], - "parameters": [{ "$ref": "#/components/parameters/X-Runway-Version" }], "requestBody": { "content": { "application/json": { "schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "ModelRouterUpdateRequest", "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).", + "name": { + "description": "Display name. The slug is immutable and cannot be changed after creation.", "type": "string", - "enum": ["2026-06", "unsafe-latest"] + "minLength": 1, + "maxLength": 255 }, - "characterImage": { - "description": "Image of the character who will appear on camera in the UGC video. Aspect ratio (width / height) must be between 0.4 and 4. See [our docs](/assets/inputs#images) for image input requirements.", + "description": { + "anyOf": [ + { "type": "string", "maxLength": 2000 }, + { "type": "null" } + ] + }, + "settings": { + "description": "Nested merge: omitted settings fields keep their current values. When models is present, omitted models.mode or models.ids are preserved (sending only optimizeFor does not clear the model allowlist or credit ceiling).", + "title": "ModelRouterSettings", "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://", + "schemaVersion": { + "description": "Settings JSON schema version. Omit on write to use the current version; responses and stored snapshots always include it.", + "type": "number", + "const": 1 + }, + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { "type": "string", - "minLength": 13, - "maxLength": 5000, - "pattern": "^runway:\\/\\/.*" + "enum": ["allow_new_except", "allowlist_only"] }, - { - "description": "A data URI containing encoded media.", - "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", - "type": "string", - "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "ids": { + "type": "array", + "items": { "type": "string" } } - ] - } - }, - "required": ["uri"], - "additionalProperties": false - }, - "productImage": { - "description": "Image of the product being promoted. Aspect ratio (width / height) must be between 0.4 and 4. See [our docs](/assets/inputs#images) for image input requirements.", - "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:\\/\\/.*" + }, + "required": ["mode", "ids"], + "additionalProperties": false + }, + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", + "type": "object", + "properties": { + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 }, - { - "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:\\/\\/.*" + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 }, - { - "description": "A data URI containing encoded media.", - "example": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==", - "type": "string", - "minLength": 13, - "maxLength": 5242880, - "pattern": "^data:image\\/.*" + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 } - ] + }, + "additionalProperties": false + }, + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", + "type": "string", + "enum": ["cost", "latency", "quality"] } }, - "required": ["uri"], "additionalProperties": false - }, - "productInfo": { - "description": "Product details and creative brief — what the product is, key benefits, and any specifics the script should reference.", - "default": "", - "type": "string", - "maxLength": 2500 - }, - "userConcept": { - "description": "Optional creative direction for the UGC video — tone, voice register, specific message, or an entire dialog script.", - "default": "", - "type": "string", - "maxLength": 3500 - }, - "duration": { - "description": "Duration of the output video in seconds (4–15). Defaults to 15 seconds.", - "type": "integer", - "minimum": 4, - "maximum": 15 - }, - "ratio": { - "description": "The resolution of the output video.", - "type": "string", - "enum": ["720:1280", "1080:1920"] - }, - "audio": { - "description": "Whether to generate audio for the video.", - "default": true, - "type": "boolean" } - }, - "required": ["version", "characterImage", "productImage"], - "additionalProperties": false + } } } } }, "responses": { "200": { - "description": "The task that was created.", + "description": "A named Model Router configuration.", "content": { "application/json": { "schema": { + "title": "ModelRouter", "type": "object", "properties": { "id": { - "description": "The ID of the task that was created. Use this to retrieve the task later.", + "description": "The Model Router's primary key ID (UUID). Use it to manage this router via the API; use the slug to reference the router in generation requests.", "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})$" + "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" + }, + "slug": { + "description": "Immutable slug used to reference this Model Router in generation requests (for example, production-video). Unique within the API project. The UUID id remains the canonical management identifier.", + "type": "string", + "pattern": "^[a-z][a-z0-9_-]{0,63}$" + }, + "name": { + "description": "Human-friendly Model Router display name shown in the dev portal. Mutable, and not used to reference the router in requests.", + "type": "string", + "minLength": 1, + "maxLength": 255 + }, + "description": { + "description": "An optional Model Router description.", + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "version": { + "description": "Current settings version. Increments when settings change; name and description updates do not create a new version.", + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "settings": { + "type": "object", + "properties": { + "schemaVersion": { + "description": "Settings JSON schema version used when this snapshot was written.", + "type": "number", + "const": 1 + }, + "models": { + "description": "When mode is allow_new_except, ids are excluded; when allowlist_only, ids are the only allowed values. Each id must be a known public video model name (unknown ids are rejected on create/update).", + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": ["allow_new_except", "allowlist_only"] + }, + "ids": { + "type": "array", + "items": { "type": "string" } + } + }, + "required": ["mode", "ids"], + "additionalProperties": false + }, + "maxCreditsPerGeneration": { + "description": "Optional per-modality hard caps on credits for one generation. Models whose estimated cost for that modality exceeds the cap are excluded.", + "type": "object", + "properties": { + "video": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "image": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + }, + "audio": { + "type": "integer", + "exclusiveMinimum": 0, + "maximum": 9007199254740991 + } + }, + "additionalProperties": false + }, + "optimizeFor": { + "description": "Soft preference among eligible models: cost, latency, or quality.", + "type": "string", + "enum": ["cost", "latency", "quality"] + } + }, + "required": ["schemaVersion"], + "additionalProperties": false + }, + "createdAt": { + "description": "When the Model Router was created.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" + }, + "updatedAt": { + "description": "When the Model Router was last updated.", + "type": "string", + "format": "date-time", + "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$" } }, - "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"], + "required": [ + "id", + "slug", + "name", + "description", + "version", + "settings", + "createdAt", + "updatedAt" + ], "additionalProperties": false } } } } } + }, + "delete": { + "tags": ["Model Router"], + "summary": "Delete Model Router", + "description": "Delete a Model Router configuration. Deleted Model Routers cannot be used for generation.", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "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})$" + }, + "description": "The Model Router's primary key ID (UUID)." + }, + { "$ref": "#/components/parameters/X-Runway-Version" } + ], + "responses": { "204": { "description": "Success" } } } }, "/v1/voices": {